From fb568fdc70321e6325a057868bf65d1ebcba1596 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 13 Jun 2016 18:16:15 +1000 Subject: [PATCH] SPIGOT-2408: setTicksLived does not properly affect FallingSand --- .../org/bukkit/craftbukkit/entity/CraftFallingSand.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftFallingSand.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftFallingSand.java index 75eed4866e..ad4eb39623 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftFallingSand.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftFallingSand.java @@ -57,4 +57,12 @@ public class CraftFallingSand extends CraftEntity implements FallingSand { public void setHurtEntities(boolean hurtEntities) { getHandle().hurtEntities = hurtEntities; } + + @Override + public void setTicksLived(int value) { + super.setTicksLived(value); + + // Second field for EntityFallingBlock + getHandle().ticksLived = value; + } }