D00Med / scifi_nodes

Minetest mod that adds scifi themed nodes
Other
12 stars 18 forks source link

Preserve the metadata of items in the itemholder by converting to string instead of taking name #47

Closed oversword closed 3 years ago

oversword commented 3 years ago

Fixes BLS issue 201 https://github.com/BlockySurvival/issue-tracker/issues/201

Item metadata is preserved by converting to string as opposed to just retrieving the name. The simplest example of why this is an issue is damaged tools: you can place a damaged tool in the item holder, and when you retrieve it all damage will be gone.

This change uses the full string instead, which includes serialised metadata, preserving it when the item is retrieved.

Another way to test this is with a written book.

BuckarooBanzay commented 3 years ago

quite a short fix, thanks :+1: