From 4fa49774787667b9fc547a2dfa40b22cc7ff88ff Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Sun, 10 Feb 2019 02:22:52 +0100 Subject: [PATCH] Tentative de correction d'un crash --- init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/init.lua b/init.lua index 8a6de0a..04b58a3 100644 --- a/init.lua +++ b/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