Added activate/desactivate everywhere the old ProfilerRegistrar was called.

This commit is contained in:
ProfMobius committed 2014-04-03 15:18:38 +02:00
1 parent a9f4f7bea6
commit 812a9e29f5
7 files changed
+18 -3

No files matched your search

@@ -11,6 +11,7 @@ import net.minecraftforge.common.DimensionManager;
import cpw.mods.fml.common.network.PacketDispatcher;
import cpw.mods.fml.common.network.Player;
import mcp.mobius.mobiuscore.profiler.ProfilerRegistrar;
import mcp.mobius.mobiuscore.profiler_v2.ProfilerSection;
import mcp.mobius.opis.modOpis;
import mcp.mobius.opis.commands.server.CommandAmountEntities;
import mcp.mobius.opis.data.client.DataCache;
@@ -146,6 +147,7 @@ public class ServerMessageHandler {
MetaManager.reset();
modOpis.profilerRun = true;
ProfilerRegistrar.turnOn();
ProfilerSection.activateAll();
OpisPacketHandler.sendPacketToAllSwing(NetDataValue.create(Message.STATUS_START, new SerialInt(modOpis.profilerMaxTicks)));
}