Added a kill all stacks command to the purge buttons.

Added confirmation windows for purge commands.
Display itemstacks instead of total entities.
This commit is contained in:
ProfMobius committed 2014-04-04 20:41:17 +02:00
1 parent a882d27186
commit 8469bd29bf
6 files changed
+49 -6

No files matched your search

@@ -193,6 +193,15 @@ public class ServerMessageHandler {
EntityManager.INSTANCE.killAllHostiles(((SerialInt)param1).value);
}
else if(maintype == Message.COMMAND_KILL_STACKS_ALL){
for (int dim : DimensionManager.getIDs())
EntityManager.INSTANCE.killAllStacks(dim);
}
else if(maintype == Message.COMMAND_KILL_STACKS_DIM){
EntityManager.INSTANCE.killAllStacks(((SerialInt)param1).value);
}
else if(maintype == Message.COMMAND_PURGE_CHUNKS_ALL){
for (int dim : DimensionManager.getIDs())
ChunkManager.INSTANCE.purgeChunks(dim);