1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 15:00:18 +01:00

Make keys stackable if they contain the same secret (Fix #2714)

This commit is contained in:
Louis Royer 2020-07-12 14:36:49 +02:00 committed by Lars Müller
parent 40861c9e4f
commit fff3b98ab0

View File

@ -61,11 +61,10 @@ minetest.register_craftitem("keys:skeleton_key", {
end
})
minetest.register_tool("keys:key", {
minetest.register_craftitem("keys:key", {
description = S("Key"),
inventory_image = "keys_key.png",
groups = {key = 1, not_in_creative_inventory = 1},
stack_max = 1,
on_place = function(itemstack, placer, pointed_thing)
local under = pointed_thing.under
local node = minetest.get_node(under)