NPE Fix with item display.

This commit is contained in:
Brianna 2019-09-24 19:47:47 -04:00
parent e8e2b26f10
commit 58927a437b

View File

@ -40,7 +40,7 @@ public class DisplayItemHandler {
Kit kit = kitBlockData.getKit();
if (kit.getReadableContents(null, false, false, false) == null) return;
if (kit == null) return;
List<ItemStack> list = kit.getReadableContents(null, false, false, false);
if (list.isEmpty()) return;