From ce5ae4404167df69d8839f466643864166bf535c Mon Sep 17 00:00:00 2001 From: Bilel MEDIMEGH Date: Sun, 19 Dec 2021 20:38:01 +0100 Subject: [PATCH] Make sure the actual tag we are looking for is present. --- src/main/java/zmaster587/libVulpes/items/ItemProjector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/zmaster587/libVulpes/items/ItemProjector.java b/src/main/java/zmaster587/libVulpes/items/ItemProjector.java index cb8da34b..7995e1f9 100644 --- a/src/main/java/zmaster587/libVulpes/items/ItemProjector.java +++ b/src/main/java/zmaster587/libVulpes/items/ItemProjector.java @@ -383,7 +383,7 @@ private void setMachineId(ItemStack stack, int id) { } private int getMachineId(ItemStack stack) { - if(stack.hasTag()) { + if(stack.hasTag() && stack.getTag().contains(IDNAME)) { return stack.getTag().getInt(IDNAME); } else