Jump to content

Recommended Posts

Posted

Hello, I have a custom furnace were the gui does not not rely on the block or a Tile Entity, similar to the way that the Crafting Table is coded, but I have a strange bug, it smelts the item fine and appears to delete what is in the first slot but when you click on the slot a item just appears and can bee smelted again. I have made sure that I am deleting what is in the first slot, but it does not seem to work. I am pretty sure that the handling of inventories and this sort of stuff is done on the server side and I do believe that is being called on the server side because I have my tick handler handle the updating of the inventory. I would appreciate any help that anyone can give because I have had this bug for a week and I have spent hours upon hours to try and figure it out, but I can't seem to figure it out.

 

(Note Code May Be Messy Due To Testing and Lazyness)

 

Inventory Code

 

  Reveal hidden contents

 

 

Container Code

 

  Reveal hidden contents

 

 

Tick handler

 

  Reveal hidden contents

 

 

I think that is all the code that is needed, but please ask if you need more!

 

Thank You!!!

 

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

Posted

Can some one please help me with my problem?

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

Posted

I don't think that that is the solution because I got the inv. code from the crafting table and that is what it had in the the class. Plus I tested it and it was returning null all the time because the slot number would always be less than 2, which is the number of slots, and that made it return null all of the time.

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

Posted

Does anyone have any other solutions that can work for my problem. I would really appreciate the help.

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

  • 2 weeks later...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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