Posted November 2, 20159 yr Hello, I am currently working on a crate ie. barrel type thing and am getting a crash when trying to take an item out of the gui. Other logic in the is item valid or can insert may be broken but these are unfinished and should not be causing problems with manually taking an item out of the inventory. Crash: http://pastebin.com/Js2stBqQ Tile entity: https://github.com/Sudwood/AdvancedUtilities/blob/master/java/com/sudwood/advancedutilities/tileentity/TileEntityWoodenCrate.java Container : https://github.com/Sudwood/AdvancedUtilities/blob/master/java/com/sudwood/advancedutilities/container/ContainerWoodenCrate.java Gui: https://github.com/Sudwood/AdvancedUtilities/blob/master/java/com/sudwood/advancedutilities/client/gui/GuiWoodenCrate.java Any help would be appreciated. If more information is needed feel free to ask for it.
November 2, 20159 yr Oh geeze. https://github.com/Sudwood/AdvancedUtilities/blob/master/java/com/sudwood/advancedutilities/tileentity/TileEntityWoodenCrate.java#L48-L51 Don't do that. Just return 64. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
November 2, 20159 yr Author Yeah I changed that line to return 64 and it still crashes at getstackinslot for some reason despite inventory being defined at the time. http://pastebin.com/MVVhikPQ
November 2, 20159 yr Are you sure that inventory isn't null when getStackInSlot is called? In your TE you are setting it to null at line 77 and line 86, I think you mean to be setting inventory[par1] to null, not inventory. Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
November 2, 20159 yr Author You were indeed correct! That shows me to check all the code after completely changing the logic of a block. Thank you very much!
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.