Posted September 15, 20169 yr Hey, The following code is fired twice, although I'm using !isRemote at the beginning. Did I miss anything? Why is it fired twice? public void weather(PlayerTickEvent e) { if(!e.player.worldObj.isRemote) { ... } }
September 15, 20169 yr This should be in Modder Support. PlayerTickEvent is fired for each logical side (already covered). What you didn't cover: Every TickEvent have event.phase. You need to pick one of phases (like you do sides). 1.7.10 is no longer supported by forge, you are on your own.
September 15, 20169 yr Author This should be in Modder Support. Ups, sorry for that! PlayerTickEvent is fired for each logical side (already covered). What you didn't cover: Every TickEvent have event.phase. You need to pick one of phases (like you do sides). Thank you. Working fine now
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.