mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 22:33:16 -04:00
Removal of incorrect node (chests mod)
This commit is contained in:
parent
8c01a5b288
commit
6a60dd5685
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@ function default.chest.chest_lid_obstructed(pos)
|
||||||
local above = {x = pos.x, y = pos.y + 1, z = pos.z}
|
local above = {x = pos.x, y = pos.y + 1, z = pos.z}
|
||||||
local def = minetest.registered_nodes[minetest.get_node(above).name]
|
local def = minetest.registered_nodes[minetest.get_node(above).name]
|
||||||
-- allow ladders, signs, wallmounted things and torches to not obstruct
|
-- allow ladders, signs, wallmounted things and torches to not obstruct
|
||||||
|
if def.drawtype == "mesh" then
|
||||||
|
minetest.remove_node(above)
|
||||||
|
end
|
||||||
if def and
|
if def and
|
||||||
(def.drawtype == "airlike" or
|
(def.drawtype == "airlike" or
|
||||||
def.drawtype == "signlike" or
|
def.drawtype == "signlike" or
|
||||||
|
|
Loading…
Add table
Reference in a new issue