add damage option to hives based on config

This commit is contained in:
temp1011 authored and GitHub committed 2017-12-30 23:24:45 +00:00
1 parent c107c75cbe
commit 5f7f7fbed6
1 file changed
+1 -1
@@ -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<EntityLivingBase> entities = world.getEntitiesWithinAABB(EntityLivingBase.class, boundingBox, beeTargetPredicate);
if (!entities.isEmpty()) {