Added a null check to tag translation.

This commit is contained in:
Brianna 2020-09-08 10:29:17 -05:00
parent e818b99970
commit 31070295aa

View File

@ -53,6 +53,7 @@ public class KitItem {
}
private void translateTags(ItemStack item) {
if (item == null) return;
NBTItem nbtItem = NmsManager.getNbt().of(item);
if (nbtItem.has("chance"))
chance = nbtItem.getNBTObject("chance").asDouble();