mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-29 13:45:13 +01:00
Added a null check to tag translation.
This commit is contained in:
parent
e818b99970
commit
31070295aa
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user