mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Fix #2466
This commit is contained in:
1 parent
ca901c9871
commit
f5f4e26558
1 file changed
+2
-1
@@ -12,6 +12,7 @@ package vazkii.botania.common.item.equipment.bauble;
|
||||
|
||||
import baubles.api.BaubleType;
|
||||
import baubles.api.BaublesApi;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.Gui;
|
||||
import net.minecraft.client.gui.ScaledResolution;
|
||||
@@ -477,7 +478,7 @@ public class ItemFlightTiara extends ItemBauble implements IManaUsingItem, IBaub
|
||||
int xo = resolution.getScaledWidth() / 2 + 10;
|
||||
int x = xo;
|
||||
int y = resolution.getScaledHeight() - ConfigHandler.flightBarHeight;
|
||||
if(player.getAir() < 300)
|
||||
if(player.isInsideOfMaterial(Material.WATER))
|
||||
y = resolution.getScaledHeight() - ConfigHandler.flightBarBreathHeight;
|
||||
|
||||
int left = ItemNBTHelper.getInt(stack, TAG_TIME_LEFT, MAX_FLY_TIME);
|
||||
|
||||
Reference in new issue
Block a user