mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-22 23:43:45 +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)
|
function unifieddyes.after_dig_node(pos, oldnode, oldmetadata, digger)
|
||||||
local prevdye
|
local prevdye
|
||||||
|
|
||||||
print(dump(oldmetadata))
|
|
||||||
|
|
||||||
if oldmetadata and oldmetadata.fields then
|
if oldmetadata and oldmetadata.fields then
|
||||||
prevdye = oldmetadata.fields.dye
|
prevdye = oldmetadata.fields.dye
|
||||||
end
|
end
|
||||||
|
|
||||||
local inv = digger:get_inventory()
|
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 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
|
if inv:room_for_item("main", prevdye) then
|
||||||
inv:add_item("main", prevdye)
|
inv:add_item("main", prevdye)
|
||||||
|
Loading…
Reference in New Issue
Block a user