Jump to content

Kognise

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Kognise

  1. Sorry! Minecraft mc = Minecraft.getMinecraft();
  2. Hey! I'm trying to swap two ItemStacks server-side and client-side within the player's inventory. The current function I have is doing absolutely nothing - any ideas why? private void swap(Integer from, Integer to) { Integer windowId = mc.thePlayer.inventoryContainer.windowId; mc.playerController.windowClick(windowId, from, 0, ClickType.PICKUP, mc.thePlayer); mc.playerController.windowClick(windowId, to, 0, ClickType.SWAP, mc.thePlayer); mc.playerController.windowClick(windowId, from, 0, ClickType.PICKUP, mc.thePlayer); } Thanks in advance!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.