Browse Source

Tentative de correction d'un crash

master
sys4-fr 1 year ago
parent
commit
4fa4977478
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      init.lua

+ 8
- 0
init.lua View File

@@ -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…
Cancel
Save