From 5f7f7fbed67c85190c78e27b2e43bd539964dfcc Mon Sep 17 00:00:00 2001 From: temp1011 <34900092+temp1011@users.noreply.github.com> Date: Sat, 30 Dec 2017 23:24:45 +0000 Subject: [PATCH] add damage option to hives based on config --- src/main/java/forestry/apiculture/tiles/TileHive.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/forestry/apiculture/tiles/TileHive.java b/src/main/java/forestry/apiculture/tiles/TileHive.java index 488f49fd4..e36136fc7 100644 --- a/src/main/java/forestry/apiculture/tiles/TileHive.java +++ b/src/main/java/forestry/apiculture/tiles/TileHive.java @@ -125,7 +125,7 @@ public class TileHive extends TileEntity implements ITickable, IHiveTile, IActiv if (tickHelper.updateOnInterval(angry ? 10 : 200)) { if (calmTime == 0) { if (canWork) { - if(world.getWorldInfo().getDifficulty() != EnumDifficulty.PEACEFUL) { + if(world.getWorldInfo().getDifficulty() != EnumDifficulty.PEACEFUL || ModuleApiculture.hivesDamageOnPeaceful) { AxisAlignedBB boundingBox = AlleleEffect.getBounding(getContainedBee().getGenome(), this); List entities = world.getEntitiesWithinAABB(EntityLivingBase.class, boundingBox, beeTargetPredicate); if (!entities.isEmpty()) {