1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Attempt to begin to implement chests and furnace in Lua (with problems)

This commit is contained in:
Perttu Ahola 2012-06-01 18:07:22 +03:00
parent fe8c5546f0
commit 29f03756bd
3 changed files with 28 additions and 19 deletions

View file

@ -237,15 +237,6 @@ function minetest.node_dig(pos, node, digger)
return
end
local meta = minetest.env:get_meta(pos)
if meta ~= nil and not meta:get_allow_removal() then
minetest.debug("dig prevented by metadata")
minetest.log("info", digger:get_player_name() .. " tried to dig "
.. node.name .. ", but removal is disabled by metadata "
.. minetest.pos_to_string(pos))
return
end
minetest.log('action', digger:get_player_name() .. " digs "
.. node.name .. " at " .. minetest.pos_to_string(pos))