diff --git a/common/src/main/java/net/irisshaders/iris/shaderpack/IdMap.java b/common/src/main/java/net/irisshaders/iris/shaderpack/IdMap.java index e8a0000760..c05c9c5595 100644 --- a/common/src/main/java/net/irisshaders/iris/shaderpack/IdMap.java +++ b/common/src/main/java/net/irisshaders/iris/shaderpack/IdMap.java @@ -253,7 +253,6 @@ private static Int2ObjectLinkedOpenHashMap> parseBlockMap(Prope /** * Parses a render layer map. *

- * This feature is used by Chocapic v9 and Wisdom Shaders. Otherwise, it is a rarely-used feature. */ private static Map parseRenderTypeMap(Properties properties, String keyPrefix, String fileName) { Map overrides = new HashMap<>(); @@ -278,6 +277,10 @@ private static Map parseRenderTypeMap(Properties } for (String part : value.split("\\s+")) { + if (part.startsWith("%")) { + Iris.logger.fatal("Cannot use a tag in the render type map: " + key + " = " + value); + continue; + } // Note: NamespacedId performs no validation on the content. That will need to be done by whatever is // converting these things to ResourceLocations. overrides.put(new NamespacedId(part), renderType);