Disabled /cpg nbt auto grabber as its causing issues.

This commit is contained in:
TinyTank800 2024-02-10 09:22:40 -08:00
parent b47857cb14
commit 21737bb99c

View File

@ -485,13 +485,13 @@ 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 { // try {
ReadWriteNBT nbt = NBT.itemStackToNBT(cont); // ReadWriteNBT nbt = NBT.itemStackToNBT(cont);
file.set("panels." + panelName + ".item." + i + ".nbt", nbt.toString()); // file.set("panels." + panelName + ".item." + i + ".nbt", nbt.toString());
}catch(Exception ignore){ // }catch(Exception ignore){
//no nbt or error // //no nbt or error
file.set("panels." + panelName + ".item." + i + ".nbt", null); // 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
} }