1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02: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))