diff --git a/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java b/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java index 4924952db67..a77c713263c 100644 --- a/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java +++ b/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java @@ -333,7 +333,7 @@ void detectEntities () { if (moltenMetal.size() >= 1) { - if (o instanceof EntityVillager) + if (o instanceof EntityVillager && PHConstruct.meltableVillagers) { EntityVillager villager = (EntityVillager) o; if (villager.attackEntityFrom(new SmelteryDamageSource(), 5)) @@ -367,10 +367,10 @@ else if (o instanceof EntityIronGolem) } } } - else if (o instanceof EntityHorse) + else if (o instanceof EntityHorse && PHConstruct.meltableHorses) { EntityHorse horse = (EntityHorse) o; - if (PHConstruct.meltableHorses && horse.attackEntityFrom(new SmelteryDamageSource(), 5)) + if (horse.attackEntityFrom(new SmelteryDamageSource(), 5)) { if (currentLiquid + 108 < maxLiquid) { diff --git a/src/main/java/tconstruct/util/config/PHConstruct.java b/src/main/java/tconstruct/util/config/PHConstruct.java index 72ebcbb9886..6c39f729c83 100644 --- a/src/main/java/tconstruct/util/config/PHConstruct.java +++ b/src/main/java/tconstruct/util/config/PHConstruct.java @@ -189,6 +189,7 @@ public static void initProps (File location) throwableSmeltery = config.get("Experimental", "Items can be thrown into smelteries", true).getBoolean(true); newSmeltery = config.get("Experimental", "Use new adaptive Smeltery code", false, "Warning: Very buggy").getBoolean(false); meltableHorses = config.get("Experimental", "Allow horses to be melted down for glue", true).getBoolean(true); + meltableVillagers = config.get("Experimental", "Allow villagers to be melted down for emeralds", true).getBoolean(true); minimalTextures = config.get("Experimental", "Minimal Textures", false).getBoolean(false); extraBlockUpdates = config.get("Experimental", "Send additional block updates when using AOE tools", true,"This fixes very fast tools sometimes resulting in ghost blocks, but causes a bit more network traffic. Should be fine in theory.").getBoolean(true); @@ -362,6 +363,7 @@ public static void initProps (File location) public static boolean throwableSmeltery; public static boolean newSmeltery; public static boolean meltableHorses; + public static boolean meltableVillagers; public static boolean minimalTextures; public static boolean extraBlockUpdates;