8iggy Posted October 5, 2021 Posted October 5, 2021 Hello! whenever I use the processrightclick method it does nothing... here's my code! using the click public void openMarketContainer() { if (Mineclub.controller != null) { Mineclub.controller.processRightClick(Mineclub.player, Mineclub.player.world, Hand.MAIN_HAND); } else { Mineclub.setController(); Mineclub.controller.processRightClick(Mineclub.player, Mineclub.player.world, Hand.MAIN_HAND); } } creating the playercontroller public static void setController() { clienthandler = Minecraft.getInstance().getConnection(); if (clienthandler != null) { controller = new PlayerController(Minecraft.getInstance(), clienthandler); Mineclub.player.sendMessage(new StringTextComponent("Created CONTROLLER"), UUID.fromString("195953ec-9073-4c89-8c96-345821c9ce14")); if (controller == null) { Mineclub.player.sendMessage(new StringTextComponent("CONTROLLER IS NULL"), UUID.fromString("195953ec-9073-4c89-8c96-345821c9ce14")); } } else { Mineclub.player.sendMessage(new StringTextComponent("Client Handler Null"), UUID.fromString("195953ec-9073-4c89-8c96-345821c9ce14")); } } Quote
Luis_ST Posted October 5, 2021 Posted October 5, 2021 it does not work because you create again a client side only mod, do this on server also again this is the wrong sub forum..! Quote
Recommended Posts
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.