forked from Upstream/CommandPanels
Disabled /cpg nbt auto grabber as its causing issues.
This commit is contained in:
parent
b47857cb14
commit
21737bb99c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user