Update init.lua

Hid doors from inventory
This commit is contained in:
sangeet79 2021-08-02 15:56:32 +03:00 committed by Thomas--S
parent 3c4141bbc4
commit 53f062ab72

View File

@ -105,7 +105,7 @@ function ts_doors.register_door(item, description, texture, sounds, recipe)
local groups = minetest.registered_nodes[item].groups local groups = minetest.registered_nodes[item].groups
local door_groups = {door=1} local door_groups = {door=1, not_in_creative_inventory=1}
for k, v in pairs(groups) do for k, v in pairs(groups) do
if k ~= "wood" then if k ~= "wood" then
door_groups[k] = v door_groups[k] = v