Hi, i have a little loop thats supposed to remove all dropped entitys on all loaded chunks of a world. The only problem is, that sometimes its working and sometimes its not. My loop: Code: // Remove all dropped items on the loaded chunks for (Chunk chunk : world.getLoadedChunks()) { Entity[] array = chunk.getEntities(); for (int i = 0; i < array.length; i++) { if (array[i].getType() == EntityType.DROPPED_ITEM) array[i].remove(); } } I have no idea to why its not working sometimes, but next time it is. Its working perfectly on my test server but only sometimes on my official in my sign.
If this doesn't help you at all, free bump Code: for (Entity e : world.getEntities()) { if ((e instanceof Item)) e.remove();
Ty, will use that one instead. Dont know whether or not it will work 100% but atleast its neater then mine