Changing slots itemstack not working. #3764
Unanswered
August-afk
asked this question in
Mod Dev Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I'm trying to create this block with with a gui. I want the player to put an enchanted book in a slot. Then when they press a button the enchanted book should be replaced by a normal book. Now that works as it should and I can see the book and hover over it to see Its name. But when I try to take the item out of the slot the book just turns back into the enchanted book. As soon as i click on the item to take it from the slot it just turns back into whatever it was before.
The method that gets called when the button is pushed looks like this:
I have no idea why this is happening please help.
Here is a link to the GitHub repo
The code is happening in the NewEnchantmentScreenHandler class
Beta Was this translation helpful? Give feedback.
All reactions