From b79e79743483b09904b042d69f029b33971ffa63 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 13 Dec 2013 19:31:59 -0500 Subject: [PATCH] Show fall particles while in creative mode. Fixes BUKKIT-5009 Relocate CraftBukkit patch to fall damage when changing gamemode from creative mode. By: t00thpick1 --- .../src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 0153608931..48c5ae9c69 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -628,6 +628,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { } getHandle().playerInteractManager.setGameMode(EnumGamemode.a(mode.getValue())); + getHandle().fallDistance = 0; getHandle().playerConnection.sendPacket(new PacketPlayOutGameStateChange(3, mode.getValue())); } }