mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 04:09:40 +00:00
Fix inverted potion condition
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user