remove old items
This commit is contained in:
parent
fdb493d95d
commit
b45eb53dff
@ -53,6 +53,14 @@ public class WorldManager extends MiniPlugin
|
||||
ent.remove();
|
||||
}
|
||||
|
||||
//Clean Old Items
|
||||
if (type == EntityType.ITEM)
|
||||
{
|
||||
for (Entity ent : ents)
|
||||
if (ent.getTicksLived() > 2400)
|
||||
ent.remove();
|
||||
}
|
||||
|
||||
//Animals
|
||||
else if (type == EntityType.BAT) cull(ents, 50);
|
||||
else if (type == EntityType.CHICKEN) cull(ents, 150);
|
||||
|
Loading…
Reference in New Issue
Block a user