1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 23:10:17 +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 end
}) })
minetest.register_tool("keys:key", { minetest.register_craftitem("keys:key", {
description = S("Key"), description = S("Key"),
inventory_image = "keys_key.png", inventory_image = "keys_key.png",
groups = {key = 1, not_in_creative_inventory = 1}, groups = {key = 1, not_in_creative_inventory = 1},
stack_max = 1,
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
local under = pointed_thing.under local under = pointed_thing.under
local node = minetest.get_node(under) local node = minetest.get_node(under)