Skip to content

Commit

Permalink
Make keys stackable if they contain the same secret (Fix #2714)
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer authored and appgurueu committed Jan 23, 2022
1 parent 40861c9 commit fff3b98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mods/keys/craftitems.lua
Expand Up @@ -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)
Expand Down

0 comments on commit fff3b98

Please sign in to comment.