long totalTime = world.getTotalWorldTime();
boolean doDaylightCycle = world.getGameRules().getGameRuleBooleanValue("doDaylightCycle");
for (EntityPlayerMP entityPlayerMP : (Iterable<EntityPlayerMP>) world.playerEntities) {
entityPlayerMP.playerNetServerHandler.sendPacketToPlayer(new Packet4UpdateTime(totalTime, entityPlayerMP.getPlayerTime(), doDaylightCycle));
}
profiler.endSection();
}
profiler.startSection("forgeTick");
FMLCommonHandler.instance().onPreWorldTick(world);