Jump to content

HarryTechReviews

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by HarryTechReviews

  1. I fixed it finally. Turns out it wasn't to do with the container at all. I hadn't used Override on a couple of functions in the block class and that somehow broke it? Thanks for all the help anyway.
  2. Seems to be that the inventory is creating the index. I removed the hotbar code and it reduced to 30. Confusing
  3. Any idea what could be wrong? I've rewritten it in different blank mods and it still doesn't work. Nothing to do with my other code
  4. The only 36 would be the inventory and hotbar slots (36 total) which I can't remove. It's nearly identical to default furnace code but still crashes
  5. Edit: The problem was some functions in the Block class weren't overriden I'm making my custom furnace (microwave) and when I open it, the inventory slots and hotbar slots appear but my furnace slots do not. It gives an index out of bounds exception with a limit of 36 but I haven't set that limit anywhere in my code. There are no hints to where it is in the error except it's to do with container (which is quite obvious). Any ideas. Here is my github repository: https://github.com/HarryTechRevs/MinecraftModding/tree/HarryTechRevs-FurnaceDevelopment
×
×
  • Create New...

Important Information

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