mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-22 05:02:17 +00:00
Some clean up on starting up, shutting down and resetting the profiler.
This commit is contained in:
1 parent
1a55456fb3
commit
34a90eec12
7 files changed
+32
-38
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package mcp.mobius.opis.data.managers;
|
||||
|
||||
import mcp.mobius.mobiuscore.profiler.ProfilerRegistrar;
|
||||
import mcp.mobius.opis.modOpis;
|
||||
import mcp.mobius.opis.server.OpisServerTickHandler;
|
||||
|
||||
public class MetaManager {
|
||||
|
||||
public static void reset(){
|
||||
modOpis.profilerRun = false;
|
||||
modOpis.selectedBlock = null;
|
||||
OpisServerTickHandler.instance.profilerRunningTicks = 0;
|
||||
TileEntityManager.references.clear();
|
||||
TileEntityManager.stats.clear();
|
||||
EntityManager.stats.clear();
|
||||
TickHandlerManager.startStats.clear();
|
||||
TickHandlerManager.endStats.clear();
|
||||
ProfilerRegistrar.turnOff();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user