Merge pull request #295 from TinyTank800/master

Disabled /cpg nbt auto grabber as its causing issues.
This commit is contained in:
RockyHawk 2024-02-11 11:52:46 +11:00 committed by GitHub
commit b88a5d62a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
}