mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-22 15:33:52 +01:00
remove some debug statements
This commit is contained in:
parent
8ea8b01dcc
commit
3b942c352f
4
init.lua
4
init.lua
@ -254,16 +254,12 @@ end
|
||||
function unifieddyes.after_dig_node(pos, oldnode, oldmetadata, digger)
|
||||
local prevdye
|
||||
|
||||
print(dump(oldmetadata))
|
||||
|
||||
if oldmetadata and oldmetadata.fields then
|
||||
prevdye = oldmetadata.fields.dye
|
||||
end
|
||||
|
||||
local inv = digger:get_inventory()
|
||||
|
||||
print(dump(prevdye))
|
||||
|
||||
if prevdye and not (inv:contains_item("main", prevdye) and creative_mode) and minetest.registered_items[prevdye] then
|
||||
if inv:room_for_item("main", prevdye) then
|
||||
inv:add_item("main", prevdye)
|
||||
|
Loading…
Reference in New Issue
Block a user