This commit is contained in:
rockyhawk64 2024-02-11 11:59:05 +11:00
parent b88a5d62a9
commit c48779291d
3 changed files with 2 additions and 8 deletions

View File

@ -8,4 +8,5 @@
</option> </option>
<option name="workspaceImportForciblyTurnedOn" value="true" /> <option name="workspaceImportForciblyTurnedOn" value="true" />
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" project-jdk-name="17" project-jdk-type="JavaSDK" />
</project> </project>

View File

@ -1,4 +1,4 @@
version: 3.20.0.0 version: 3.20.0.1
main: me.rockyhawk.commandpanels.CommandPanels main: me.rockyhawk.commandpanels.CommandPanels
name: CommandPanels name: CommandPanels
author: RockyHawk author: RockyHawk

View File

@ -485,13 +485,6 @@ public class ItemCreation {
if(plugin.legacy.LOCAL_VERSION.greaterThanOrEqualTo(MinecraftVersions.v1_14)){ if(plugin.legacy.LOCAL_VERSION.greaterThanOrEqualTo(MinecraftVersions.v1_14)){
file.set("panels." + panelName + ".item." + i + ".customdata", Objects.requireNonNull(cont.getItemMeta()).getCustomModelData()); file.set("panels." + panelName + ".item." + i + ".customdata", Objects.requireNonNull(cont.getItemMeta()).getCustomModelData());
} }
// try {
// ReadWriteNBT nbt = NBT.itemStackToNBT(cont);
// file.set("panels." + panelName + ".item." + i + ".nbt", nbt.toString());
// }catch(Exception ignore){
// //no nbt or error
// file.set("panels." + panelName + ".item." + i + ".nbt", null);
// }
}catch(Exception n){ }catch(Exception n){
//skip over an item that spits an error //skip over an item that spits an error
} }