forked from mtcontrib/invtweak
Compare commits
1 Commits
1911b5d160
...
4fa4977478
Author | SHA1 | Date | |
---|---|---|---|
4fa4977478 |
8
init.lua
8
init.lua
@ -274,6 +274,14 @@ minetest.register_on_dignode(function(pos, oldnode, digger)
|
|||||||
if not old and tname == "" then
|
if not old and tname == "" then
|
||||||
old = 0
|
old = 0
|
||||||
end
|
end
|
||||||
|
--debug
|
||||||
|
if not old then
|
||||||
|
old = 0
|
||||||
|
print("Debug invtweak: OLD is nil\nplayer is ")
|
||||||
|
print(name)
|
||||||
|
print("\nname is ")
|
||||||
|
print(tname)
|
||||||
|
end
|
||||||
local new = item:get_wear()
|
local new = item:get_wear()
|
||||||
|
|
||||||
if old ~= new then
|
if old ~= new then
|
||||||
|
Reference in New Issue
Block a user