mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-28 07:55:49 +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
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user