May 7, 20169 yr I need to use ClientTickEvent to check if my mod's keybinds trigger. his used to work on 1.8.9, but now it seems the method is triggered exclusevly on the server side. Example: @SubscribeEvent public void handleClientTick(ClientTickEvent event){ System.out.println(FMLCommonHandler.instance().getSide()); } Prints out: [14:48:20] [Client thread/INFO] [sTDOUT]: [com.github.alexthe666.iceandfire.event.EventKeys:handleClientTick:19]: SERVER
May 7, 20169 yr Author Hold on, it only appears to change after i send a packet to the client. how strange o.0
May 8, 20169 yr Author You are totally correct. after checking my superclass(from an library my friend owns) I see this snippet. message.onServerReceived(FMLServerHandler.instance().getServer(), message, messageContext.getServerHandler().playerEntity, messageContext)); I'll just try to make a basic version by myself, then, and see if it works.
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.