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

Metadata and world / core.set_node updates #22

Merged
merged 2 commits into from
Sep 7, 2021
Merged

Metadata and world / core.set_node updates #22

merged 2 commits into from
Sep 7, 2021

Conversation

S-S-X
Copy link
Owner

@S-S-X S-S-X commented Sep 7, 2021

core.get_craft_result returns nil when input is empty, also gives bit more info when it falls through toward complete failure.

Implemented (possibly wrong...) to_table methods for ItemStack and MetaDataRef.

Fixed few problems with world.set_node and its friends (ensure that supplied node always has correct fields).

Also reduced InvRef:get_list(...) spamming, so far no problems with it. Did not remove message because I'm still not sure if actual minetest engine returns lists as references.

@S-S-X S-S-X added the enhancement New feature or request label Sep 7, 2021
@S-S-X
Copy link
Owner Author

S-S-X commented Sep 7, 2021

Tested with multiple projects and everything seems to work without problems.

@S-S-X S-S-X merged commit 87d596e into master Sep 7, 2021
@S-S-X S-S-X deleted the metadata-fixes branch September 7, 2021 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant