Fix inverted potion condition

This commit is contained in:
Vincent Lee committed 2016-03-05 09:30:44 -06:00
1 parent 9975f4b028
commit 67bcd94edf
1 file changed
+1 -1
@@ -38,7 +38,7 @@ public class PotionBloodthirst extends PotionMod {
AxisAlignedBB aabb = new AxisAlignedBB(event.x - RANGE, event.y - RANGE, event.z - RANGE, event.x + RANGE, event.y + RANGE, event.z + RANGE);
for(EntityPlayer player : event.world.playerEntities) {
if(hasEffect(player) && !hasEffect(player, ModPotions.emptiness) && player.getEntityBoundingBox().intersectsWith(aabb)) {
event.setResult(Result.DENY);
event.setResult(Result.ALLOW);
return;
}
}