Fix missed mapping. #releaseBuild

This commit is contained in:
modmuss50 2020-01-21 15:50:33 +00:00
parent 6447033d59
commit 147eec26f6

View file

@ -84,7 +84,7 @@ public class QuantumSuitItem extends TRArmourItem implements ItemStackModifiers,
public void tickArmor(ItemStack stack, PlayerEntity playerEntity) {
switch (this.slot) {
case HEAD:
if (playerEntity.isInWater()) {
if (playerEntity.isSubmergedInWater()) {
if (Energy.of(stack).use(breathingCost)) {
playerEntity.addStatusEffect(new StatusEffectInstance(StatusEffects.WATER_BREATHING, 5, 1));
}