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

Why won't stacks stack with other identical stacks from another Luanti session? #39

Open
SwissalpS opened this issue Jan 5, 2025 · 1 comment
Labels
question Further information is requested

Comments

@SwissalpS
Copy link
Contributor

Example:
1 Fill up several chests with identical settings and identical contents.
2 Wrench the all --> they stack nicely.
3 Put that stack into some other chest.
4 Restart the server.
5 Fill up some more chests just like in step 1
6 repeat step 2
7 when you repeat step 3, the new stack doesn't stack with the old stack. Instead they use up another slot.

@OgelGames
Copy link
Contributor

core.serialize is not deterministic, and neither is this:

for name, meta_type in pairs(def.metas or {}) do

It might be possible to implement our own deterministic serialization function, but I don't know if it's worth adding that extra complexity just to make things stack.

@OgelGames OgelGames added the question Further information is requested label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants