Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First slot not cleared for insertion after using key #5

Open
Darkere opened this issue May 27, 2021 · 2 comments
Open

First slot not cleared for insertion after using key #5

Darkere opened this issue May 27, 2021 · 2 comments
Labels

Comments

@Darkere
Copy link

Darkere commented May 27, 2021

Minecraft Version:
1.16.5

Forge Version:
1.16.5-36.1.16

Mod Version:
simpletomb-1.16.5-1.0.7

When opening a grave using the key, the first slot (the slot the key was in) becomes empty instead of being filled by the item that was in that slot before death. This causes all items to shift forcing me to reorganize my inventory.

@Lothrazar Lothrazar added the 1.16 label Jun 13, 2021
@NeosGhost
Copy link

still present in 1.19

@SaintWacko
Copy link
Contributor

As a developer, I can guess what's happening here. When you activate the gravestone, two things happen. First, your inventory is restored from the gravestone, shifted over depending on what slots are already filled (this includes the slot filled by the key). Second, the key is removed from your inventory. The solution should be as simple as reversing the order of those two actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants