From 6048e64db4a28d89191a46c39fefb98886f62b8c Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 29 Apr 2023 22:36:30 +0200 Subject: [PATCH] Test fix clipping while crouching Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/utils/FlatteningWrapper14.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FightSystem_14/src/de/steamwar/fightsystem/utils/FlatteningWrapper14.java b/FightSystem_14/src/de/steamwar/fightsystem/utils/FlatteningWrapper14.java index a7900fe..937fde2 100644 --- a/FightSystem_14/src/de/steamwar/fightsystem/utils/FlatteningWrapper14.java +++ b/FightSystem_14/src/de/steamwar/fightsystem/utils/FlatteningWrapper14.java @@ -27,6 +27,7 @@ import org.bukkit.block.data.BlockData; import org.bukkit.block.data.Waterlogged; import org.bukkit.block.data.type.Dispenser; import org.bukkit.entity.Player; +import org.bukkit.entity.Pose; import org.bukkit.event.block.BlockPhysicsEvent; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.BlockDataMeta; @@ -121,6 +122,6 @@ public class FlatteningWrapper14 implements FlatteningWrapper { @Override public boolean isCrouching(Player player) { - return player.isGliding(); + return player.getPose() == Pose.FALL_FLYING; } }