This commit is contained in:
gnembon committed 2021-06-13 11:49:01 -03:00
1 parent dc38cd272f
commit 8093ac995d
1 file changed
+1 -1
@@ -18,7 +18,7 @@ public class ShulkerBoxBlockEntity_creativeNoClipMixin
))
private PistonBehavior getPistonBehaviourOfNoClipPlayers(Entity entity)
{
if (CarpetSettings.creativeNoClip && entity instanceof PlayerEntity && (((PlayerEntity) entity).isCreative()) && ((PlayerEntity) entity).abilities.flying)
if (CarpetSettings.creativeNoClip && entity instanceof PlayerEntity && (((PlayerEntity) entity).isCreative()) && ((PlayerEntity) entity).getAbilities().flying)
return PistonBehavior.IGNORE;
return entity.getPistonBehavior();
}