remove old items

This commit is contained in:
Cheese 2015-11-28 00:43:01 +11:00
parent fdb493d95d
commit b45eb53dff

View File

@ -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);