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)){
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);
}
// 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){
//skip over an item that spits an error
}