Skip to content

Commit

Permalink
Set item entity age with time_lived mec on 1.16 (#2265)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergu committed Dec 31, 2020
1 parent ab372a3 commit a6a3907
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -619,6 +619,9 @@ public void setTicksLived(Entity entity, int ticks) {
if (entity instanceof CraftFallingBlock) {
((CraftFallingBlock) entity).getHandle().ticksLived = ticks;
}
else if (entity instanceof CraftItem) {
((EntityItem) ((CraftItem) entity).getHandle()).age = ticks;
}
}

@Override
Expand Down

0 comments on commit a6a3907

Please sign in to comment.