Lejo1 / adv_keys

Replaces the Skeleton Key with one with multiple chests.
Other
0 stars 1 forks source link

Unknown item after upgrading #1

Closed thomasrudin closed 5 years ago

thomasrudin commented 5 years ago

Existing item "default:skeleton_key" is now undefined, any chance for a compat/upgrade path? Ref: https://github.com/pandorabox-io/pandorabox.io/issues/101

Lejo1 commented 5 years ago

I needed to unregister it. I don‘t know if there is a way to delete the unknown items.

thomasrudin commented 5 years ago

fixed by #2 Another (proper?) approach would be to create a whole new key and leave the existing ones alone...

Lejo1 commented 5 years ago

Another (proper?) approach would be to create a whole new key and leave the existing ones alone...

Sadly this is not possible because default.can_interact_with_node() only checks for item.name == "default:key" and not group.key = 1 See https://github.com/minetest/minetest_game/blob/master/mods/default/functions.lua#L588

Lejo1 commented 5 years ago

Fixed in #2