SPIGOT-2408: setTicksLived does not properly affect FallingSand
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -57,4 +57,12 @@ public class CraftFallingSand extends CraftEntity implements FallingSand {
|
|||||||
public void setHurtEntities(boolean hurtEntities) {
|
public void setHurtEntities(boolean hurtEntities) {
|
||||||
getHandle().hurtEntities = 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