From 88248508cc6118db0706db43dc3622da98263dd0 Mon Sep 17 00:00:00 2001 From: Oth3r Date: Sat, 28 Sep 2024 17:54:42 -0500 Subject: [PATCH] fix exception on `!` tag entries --- src/main/java/one/oth3r/sit/file/CustomBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/one/oth3r/sit/file/CustomBlock.java b/src/main/java/one/oth3r/sit/file/CustomBlock.java index beadd22..192e963 100644 --- a/src/main/java/one/oth3r/sit/file/CustomBlock.java +++ b/src/main/java/one/oth3r/sit/file/CustomBlock.java @@ -88,7 +88,7 @@ public class CustomBlock { // if there is a math for the NOT(!) tag, return false if (tag.startsWith("!") && blockState.isIn(TagKey.of(Registries.BLOCK.getKey(), Identifier.of(tag.substring(2))))) return false; // if there is a match, return true - if (blockState.isIn(TagKey.of(Registries.BLOCK.getKey(), Identifier.of(tag.substring(1))))) tagCheck = true; + if (blockState.isIn(TagKey.of(Registries.BLOCK.getKey(), Identifier.tryParse(tag.substring(1))))) tagCheck = true; } // not returning true in the loop because there might be a (!) not tag that the block might fall into, after the block was already in another tag