Skip to content

Commit

Permalink
Merge pull request #295 from TinyTank800/master
Browse files Browse the repository at this point in the history
Disabled /cpg nbt auto grabber as its causing issues.
  • Loading branch information
rockyhawk64 authored Feb 11, 2024
2 parents b47857c + 21737bb commit b88a5d6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/me/rockyhawk/commandpanels/classresources/ItemCreation.java
Original file line number Diff line number Diff line change
Expand Up @@ -485,13 +485,13 @@ public YamlConfiguration generatePanelFile(String panelName, Inventory inv, Yaml
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
}
Expand Down

0 comments on commit b88a5d6

Please sign in to comment.