Some clean up on starting up, shutting down and resetting the profiler.

This commit is contained in:
ProfMobius committed 2013-12-23 14:04:19 +01:00
1 parent 1a55456fb3
commit 34a90eec12
7 files changed
+32 -38

No files matched your search

@@ -55,9 +55,7 @@ public class OpisServerTickHandler implements ITickHandler {
else if (profilerRunningTicks >= modOpis.profilerMaxTicks && modOpis.profilerRun){
profilerRunningTicks = 0;
modOpis.profilerRun = false;
ProfilerRegistrar.registerProfilerTileEntity(new DummyProfiler());
ProfilerRegistrar.registerProfilerEntity(new DummyProfiler());
ProfilerRegistrar.registerProfilerTick(new DummyProfiler());
ProfilerRegistrar.turnOff();
for (EntityPlayer player : players)
PacketDispatcher.sendPacketToPlayer(new Packet3Chat(ChatMessageComponent.createFromText(String.format("\u00A7oOpis automaticly stopped after %d ticks.", modOpis.profilerMaxTicks))), (Player)player);