mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-27 07:27:15 +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;
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue