diff --git a/src/main/java/slimeknights/mantle/util/RetexturedHelper.java b/src/main/java/slimeknights/mantle/util/RetexturedHelper.java index e3a8ef48..616ab069 100644 --- a/src/main/java/slimeknights/mantle/util/RetexturedHelper.java +++ b/src/main/java/slimeknights/mantle/util/RetexturedHelper.java @@ -36,7 +36,10 @@ public final class RetexturedHelper { */ public static Block getBlock(String name) { if (!name.isEmpty()) { - return Registry.BLOCK.get(new ResourceLocation(name)); + ResourceLocation location = ResourceLocation.tryParse(name); + if (location != null) { + return Registry.BLOCK.get(location); + } } return Blocks.AIR; }