Fix crash in abmp when abm label is nil

This commit is contained in:
cora 2023-08-24 04:34:27 +02:00
parent 5bb66d0bad
commit a3022ddb9a

View File

@ -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()