Skip to content

Commit 6151378

Browse files
committed
small edit to DivingHelmetItem and RemainingAirOverlay to fix compile errors
1 parent c4dfafd commit 6151378

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/main/java/com/simibubi/create/content/equipment/armor/DivingHelmetItem.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ public static void breatheUnderwater(LivingEntity entity) {
121121
if (entity instanceof ServerPlayer sp)
122122
AllAdvancements.DIVING_SUIT.awardTo(sp);
123123

124-
event.setCanBreathe(true);
125-
event.setCanRefillAir(true);
124+
entity.setAirSupply(entity.getMaxAirSupply());
126125
}
127126
}

src/main/java/com/simibubi/create/content/equipment/armor/RemainingAirOverlay.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import net.minecraft.client.gui.GuiGraphics;
1212
import net.minecraft.client.player.LocalPlayer;
1313
import net.minecraft.network.chat.Component;
14-
import net.minecraft.tags.FluidTags;
1514
import net.minecraft.util.StringUtil;
1615
import net.minecraft.world.item.ItemStack;
1716
import net.minecraft.world.level.GameType;

0 commit comments

Comments
 (0)