mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-12 16:27:45 +00:00
Merge pull request #87 from Voidi/master
support Chisel Input with registered ores and oreDictonary
This commit is contained in:
commit
fc5e46d144
1 file changed
+10
-4
@@ -113,10 +113,16 @@ public class Carving
|
||||
int i = OreDictionary.getOreID(block.getUnlocalizedName());
|
||||
if(i < 1)
|
||||
return null;
|
||||
|
||||
//if((res = carvingGroupsByOre.get(OreDictionary.getOreIDs(new ItemStack(block, 1, metadata)))) != null)
|
||||
// return res;
|
||||
|
||||
|
||||
//get All dictionary names for that block via Ids
|
||||
//the first one matching with a group is chosen
|
||||
int[] oreDictIds = OreDictionary.getOreIDs(new ItemStack(block, 1, metadata));
|
||||
for (int oreId : oreDictIds) {
|
||||
String oreDictName = OreDictionary.getOreName(oreId);
|
||||
if(carvingGroupsByOre.containsKey(oreDictName))
|
||||
return carvingGroupsByOre.get(oreDictName);
|
||||
}
|
||||
|
||||
if((res = carvingGroupsByVariation.get(key(block, metadata))) != null)
|
||||
return res;
|
||||
|
||||
|
||||
Reference in new issue
Block a user