mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
SPIGOT-2408: setTicksLived does not properly affect FallingSand
This commit is contained in:
1 parent
7f1a32252b
commit
fb568fdc70
1 file changed
+8
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user