Fix #1278 Wild bees don't hurt if you wear any 1 piece of Apiarist gear

This commit is contained in:
mezz committed 2016-06-03 16:19:45 -07:00
1 parent f82d123b7f
commit b5f60d73e3
1 file changed
+1 -2
@@ -231,8 +231,7 @@ public class TileHive extends TileEntity implements ITickable, IHiveTile, IActiv
if (damage > 0) {
// Entities are not attacked if they wear a full set of apiarist's armor.
int count = BeeManager.armorApiaristHelper.wearsItems(entity, damageSourceBeeHive.damageType, true);
damage -= damage / 4.0f * count;
if (damage > 0) {
if (entity.worldObj.rand.nextInt(4) >= count) {
entity.attackEntityFrom(damageSourceBeeHive, damage);
}
}