mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-20 20:22:39 +00:00
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:
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);
|
||||
|
||||
Reference in new issue
Block a user