forked from mtcontrib/invtweak
Tentative de correction d'un crash
This commit is contained in:
parent
1911b5d160
commit
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
|
||||
old = 0
|
||||
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()
|
||||
|
||||
if old ~= new then
|
||||
|
Loading…
Reference in New Issue
Block a user