-Dropped support for golem type api

-Added crafting/uncrafting for disguised armor
This commit is contained in:
makeo committed 2015-12-26 16:28:17 +01:00
1 parent 4bd8d0ce5a
commit aeecdbe33b
12 files changed
+306 -32

No files matched your search

@@ -51,10 +51,11 @@ public class InfusionUpgradeRecipe extends InfusionRecipe {
for(int i = 0; i < EnumGolemType.values().length ; i++) {
EnumGolemType type = EnumGolemType.values()[i];
AdditionalGolemType addType = GadomancyApi.getAdditionalGolemType(type);
Item input = addType == null ? ConfigItems.itemGolemPlacer : addType.getPlacerItem();
recipes[i] = new InfusionUpgradeRecipe(research, upgrade, inst, aspects, new ItemStack(input, 1, type.ordinal()), recipe);
if(type.health > 0) {
AdditionalGolemType addType = GadomancyApi.getAdditionalGolemType(type);
Item input = addType == null ? ConfigItems.itemGolemPlacer : addType.getPlacerItem();
recipes[i] = new InfusionUpgradeRecipe(research, upgrade, inst, aspects, new ItemStack(input, 1, type.ordinal()), recipe);
}
}
return recipes;
}