mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-28 16:06:48 +01:00
Fix #4454
This commit is contained in:
parent
7ed2f71a01
commit
364ddf7c6d
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ public class DivingHelmetItem extends CopperArmorItem {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
boolean lavaDiving = entity.isEyeInFluidType(ForgeMod.LAVA_TYPE.get());
|
boolean lavaDiving = entity.isEyeInFluidType(ForgeMod.LAVA_TYPE.get());
|
||||||
if (!entity.isEyeInFluidType(ForgeMod.WATER_TYPE.get()) && !lavaDiving)
|
if (!entity.canDrownInFluidType(entity.getEyeInFluidType()) && !lavaDiving)
|
||||||
return;
|
return;
|
||||||
if (entity instanceof Player && ((Player) entity).isCreative())
|
if (entity instanceof Player && ((Player) entity).isCreative())
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue