Posted May 26, 20178 yr I not sure whats causing the slot Stacks to be null, when they should be ItemStack.Emtpy. Must be forgetting something obvious. Here's the crash log. https://pastebin.com/zLsCe8Ee And here's the my open source code : https://github.com/BubbleTrouble14/GunsMod Edited May 26, 20178 yr by BubbleTrouble
May 26, 20178 yr Author 15 minutes ago, diesieben07 said: Many things... Don't extend BlockContainer, simply override Block::hasTileEntity and Block::createTileEntity. This check is not needed. Why is the Gui ID hardcoded here? Don't use IInventory. Use IItemHandler via capabilities. Those are just the first things I could find. Okay thx, will have a look to see if anything fixes it.
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.