Posted August 2, 201411 yr I'm using the handleItemUse event, and it works perfectly fine, it just triggers twice which is not a good thing. Is there anyway to fix this or is something just going wrong?
August 2, 201411 yr Okay im not sure which one gonna work for you so try both of them. The first one is side checking via world.isRemote Its returns false if its a server world and true if its client world. You can try to check if its the server world so its only do what you want once on the server. The second one is by event.phase checking. An example: if(event.phase == Phase.END){ //Do stuff }
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.