mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-28 15:56:19 +00:00
Removed some weird dependencies.
Removed some potential overhead in the star/stop calls.
This commit is contained in:
1 parent
039cc78f4a
commit
14df79c55c
4 files changed
+5
-6
No files matched your search
@@ -27,7 +27,7 @@ public class EntityProfiler implements IProfilerEntity {
|
||||
|
||||
@Override
|
||||
public void Start(Entity ent) {
|
||||
if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) return;
|
||||
//if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) return;
|
||||
if ((!modOpis.profilerRun) || (OpisServerTickHandler.instance.profilerUpdateTickCounter % modOpis.profilerDelay != 0)) return;
|
||||
|
||||
if (ent.worldObj.isRemote) return;
|
||||
@@ -39,7 +39,7 @@ public class EntityProfiler implements IProfilerEntity {
|
||||
|
||||
@Override
|
||||
public void Stop(Entity ent) {
|
||||
if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) return;
|
||||
//if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) return;
|
||||
if ((!modOpis.profilerRun) || (OpisServerTickHandler.instance.profilerUpdateTickCounter % modOpis.profilerDelay != 0)) return;
|
||||
|
||||
this.clock.stop();
|
||||
|
||||
Reference in new issue
Block a user