Skip to content

Commit

Permalink
fix time_lived mismapping for 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Nov 12, 2021
1 parent dbca8f5 commit 5be1f7c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -670,7 +670,7 @@ public void setTicksLived(Entity entity, int ticks) {
// Bypass Spigot's must-be-at-least-1-tick requirement, as negative tick counts are useful
((CraftEntity) entity).getHandle().tickCount = ticks;
if (entity instanceof CraftFallingBlock) {
((CraftFallingBlock) entity).getHandle().tickCount = ticks;
((CraftFallingBlock) entity).getHandle().time = ticks;
}
else if (entity instanceof CraftItem) {
((ItemEntity) ((CraftItem) entity).getHandle()).age = ticks;
Expand Down

0 comments on commit 5be1f7c

Please sign in to comment.