From a3022ddb9a1a5212fb7bed68a596248cd5c95b54 Mon Sep 17 00:00:00 2001 From: cora Date: Thu, 24 Aug 2023 04:34:27 +0200 Subject: [PATCH] Fix crash in abmp when abm label is nil --- abmp/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abmp/init.lua b/abmp/init.lua index 8f8f1d1..cc705b8 100644 --- a/abmp/init.lua +++ b/abmp/init.lua @@ -6,7 +6,7 @@ local nabm=0 minetest.register_on_mods_loaded(function() for k,v in pairs(minetest.registered_abms) do - local n=v.label + local n=v.label or "ABM-"..k local olda=v.action minetest.registered_abms[k].action=function(pos, node, aoc, aocw) local t1=os.clock()