March 22, 201411 yr Author Actually, thanks to the power of my key board's metronome, I've found out the world gets updated 40 times each second. Kain
March 23, 201411 yr Actually, thanks to the power of my key board's metronome, I've found out the world gets updated 40 times each second. Probably once on the client and once on the server: 40 / 2 = 20. http://i.imgur.com/NdrFdld.png[/img]
March 23, 201411 yr Author It's doing the counting server-side. I'm pretty sure, I registered the event in my ServerProxy and I have a !world.isRemote check. Kain
March 23, 201411 yr Hi At a guess, you're probably counting both the pre ticks and the post ticks. ("Phase = start", "Phase = end") public static class WorldTickEvent extends TickEvent { public final World world; public WorldTickEvent(Side side, Phase phase, World world) { super(Type.WORLD, side, phase); this.world = world; } } from /** * Every tick just before world and other ticks occur */ public void onPreWorldTick(World world) { bus().post(new TickEvent.WorldTickEvent(Side.SERVER, Phase.START, world)); } and /** * Every tick just after world and other ticks occur */ public void onPostWorldTick(World world) { bus().post(new TickEvent.WorldTickEvent(Side.SERVER, Phase.END, world)); } -TGG
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.