From be56f3caf89a06d76ab70bb91b22844b1f53c615 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 10 Jul 2021 17:39:58 +0200 Subject: [PATCH] Add ItemStorage Signed-off-by: yoyosource --- .../bausystem/features/detonator/storage/ItemStorage.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/detonator/storage/ItemStorage.java b/BauSystem_Main/src/de/steamwar/bausystem/features/detonator/storage/ItemStorage.java index 4c0ca7cc..71b6edb4 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/detonator/storage/ItemStorage.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/detonator/storage/ItemStorage.java @@ -126,6 +126,9 @@ public class ItemStorage implements DetonatorStorage { return Collections.emptyList(); } ItemMeta meta = itemStack.getItemMeta(); + if (meta == null) { + return Collections.emptyList(); + } PersistentDataContainer container = meta.getPersistentDataContainer(); int length = length();