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

GUIInventoryList: Keep item size while moving #12896

Merged
merged 1 commit into from Oct 24, 2022

Conversation

kilbith
Copy link
Contributor

@kilbith kilbith commented Oct 24, 2022

Currently, the engine weirdly assumes that the slot of destination is likely of size 1,1.

This patch makes the sizes of moving items inheriting from their sizes in their slots of origin.

In practice, this patch looks like this:

ezgif-1-c63094566a

Instead of (in upstream):

ezgif-1-3ddfb045f4

@sfan5 sfan5 added the Bugfix 🐛 PRs that fix a bug label Oct 24, 2022
Copy link
Member

@sfan5 sfan5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nerzhul
Copy link
Member

nerzhul commented Oct 24, 2022

Thanks, clearly a good fix :)

@nerzhul nerzhul merged commit 1626639 into minetest:master Oct 24, 2022
LoneWolfHT pushed a commit to LoneWolfHT/minetest that referenced this pull request Nov 1, 2022
appgurueu pushed a commit to appgurueu/minetest that referenced this pull request May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants