Button Click in Custom Gui causes ghost items/Causes both if else do procedures to activate

Started by DoctorMGW123 on

Topic category: Help with modding (Java Edition)

Last seen on 01:09, 14. Sep 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Button Click in Custom Gui causes ghost items/Causes both if else do procedures to activate
Wed, 08/28/2024 - 18:11 (edited)

I am trying to do a Random Chance Button click that when pressed causes either the removal of an item or an increase of an item.  For some reason though, when the item is supposed to be added to the gui slot, it creates a ghost item that can not be hoppered out and can not be removed from the slot without its own deletion. I have checked around and have not found anything similar to my issue. 

 

Link to photo [can't figure out how to attach photo]

https://imgur.com/a/zhFbRE9

Edited by DoctorMGW123 on Wed, 08/28/2024 - 18:11