This commit is contained in:
PepperCode1 2023-03-07 14:46:08 -08:00
parent 7ed2f71a01
commit 364ddf7c6d

View file

@ -39,7 +39,7 @@ public class DivingHelmetItem extends CopperArmorItem {
return;
boolean lavaDiving = entity.isEyeInFluidType(ForgeMod.LAVA_TYPE.get());
if (!entity.isEyeInFluidType(ForgeMod.WATER_TYPE.get()) && !lavaDiving)
if (!entity.canDrownInFluidType(entity.getEyeInFluidType()) && !lavaDiving)
return;
if (entity instanceof Player && ((Player) entity).isCreative())
return;