mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Fix #1588: chordata ring stops player from drowning with no mana.
This commit is contained in:
1 parent
010ff46f72
commit
1ca6fd6b96
1 file changed
+2
-1
@@ -58,7 +58,8 @@ public class ItemWaterRing extends ItemBauble implements IManaUsingItem {
|
||||
|
||||
if(player.getAir() <= 1 && player instanceof EntityPlayer) {
|
||||
int mana = ManaItemHandler.requestMana(stack, (EntityPlayer) player, 300, true);
|
||||
player.setAir(mana);
|
||||
if(mana > 0) // If zero gets in the player has no air but won't drown.
|
||||
player.setAir(mana);
|
||||
}
|
||||
} else onUnequipped(stack, player);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user