Posted September 4, 201312 yr Okay, so i kind of have the inventory working. The only thing i really can't get to work is picking up an item and placing it in to the inventory for the player. I've been looking for a solution a long time now and I haven't come across one yes so i search here for help! Current action: As i click the slot i get 1, only 1 cobble stone in the hand and then it removes it from the gui (as expected as i picked it up) then when i click an inventory slot (player inventory) it just goes back in to the gui (the normal inventory) and then when i exit the gui it drops a copple of stacks on the ground Gui: https://github.com/vpklotar/Industrial-Line/blob/master/src/se/vpklotar/il/gui/GuiNetController.java Container: https://github.com/vpklotar/Industrial-Line/blob/master/src/se/vpklotar/il/block/NetControllerContainer.java uNet: https://github.com/vpklotar/Industrial-Line/blob/master/src/se/vpklotar/il/power/uNet.java I would really appreciate if someone could help me sort this out!
September 5, 201312 yr None of your slots use the player inventory. Check your layoutInventory() in NetControllerContainer.
September 5, 201312 yr Author None of your slots use the player inventory. Check your layoutInventory() in NetControllerContainer. Okay, haha, failed to notice that, at least i get a new block into my inventory but it should be a stack And though it renders there it seams to be null for some reason...
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.