aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/shcm
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/shcm')
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CIT.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CIT.java b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CIT.java
index e618a6f..98e94f6 100644
--- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CIT.java
+++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CIT.java
@@ -54,6 +54,15 @@ public abstract class CIT {
throw new Exception("Unknown item " + itemId);
this.items.add(Registry.ITEM.get(itemIdentifier));
}
+ if (this.items.isEmpty())
+ try {
+ String id = propertiesIdentifier.getPath().substring(0, propertiesIdentifier.getPath().length() - 11);
+ String[] split = id.split("/");
+ id = split[split.length - 1];
+ Identifier itemId = new Identifier(propertiesIdentifier.getNamespace(), id);
+ if (Registry.ITEM.containsId(itemId))
+ this.items.add(Registry.ITEM.get(itemId));
+ } catch (Exception ignored) { }
String damage = properties.getProperty("damage");
if (damageAny = damage == null) {