diff --git a/specialPeopleStuff.properties b/specialPeopleStuff.properties index 9b9384fc6..3d30e6e6a 100644 --- a/specialPeopleStuff.properties +++ b/specialPeopleStuff.properties @@ -1,4 +1,4 @@ -ellpeck=ActuallyAdditions:itemPhantomConnector -dqmhose=minecraft:torch -twoofeight=ActuallyAdditions:blockHeatCollector -larixine=ActuallyAdditions:blockBlackLotus \ No newline at end of file +ellpeck=ActuallyAdditions:itemCrystal@4 +dqmhose=minecraft:torch@0 +twoofeight=ActuallyAdditions:blockHeatCollector@0 +larixine=ActuallyAdditions:blockBlackLotus@0 \ No newline at end of file diff --git a/src/main/java/ellpeck/actuallyadditions/misc/special/SpecialRenderInit.java b/src/main/java/ellpeck/actuallyadditions/misc/special/SpecialRenderInit.java index ab60e4d60..190c7065c 100644 --- a/src/main/java/ellpeck/actuallyadditions/misc/special/SpecialRenderInit.java +++ b/src/main/java/ellpeck/actuallyadditions/misc/special/SpecialRenderInit.java @@ -48,22 +48,33 @@ public class SpecialRenderInit{ public static void parse(Properties properties){ for(String key : properties.stringPropertyNames()){ - String value = properties.getProperty(key); + String[] values = properties.getProperty(key).split("@"); + if(values != null && values.length > 0){ + String itemName = values[0]; - ItemStack stack = null; - //Get the Item from the String - if(Item.itemRegistry.containsKey(value)){ - stack = new ItemStack((Item)Item.itemRegistry.getObject(value)); - } - else{ - if(Block.blockRegistry.containsKey(value)){ - stack = new ItemStack((Block)Block.blockRegistry.getObject(value)); + int meta; + try{ + meta = Integer.parseInt(values[1]); + } + catch(Exception e){ + meta = 0; } - } - //Add a new Special Renderer to the list - if(stack != null){ - specialList.put(key, new RenderSpecial(stack)); + ItemStack stack = null; + //Get the Item from the String + if(Item.itemRegistry.containsKey(itemName)){ + stack = new ItemStack((Item)Item.itemRegistry.getObject(itemName), 1, meta); + } + else{ + if(Block.blockRegistry.containsKey(itemName)){ + stack = new ItemStack((Block)Block.blockRegistry.getObject(itemName), 1, meta); + } + } + + //Add a new Special Renderer to the list + if(stack != null){ + specialList.put(key, new RenderSpecial(stack)); + } } } }