Fix crash when no paxel stop reason is given
This commit is contained in:
parent
054e1389c4
commit
bc519e605a
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ local function paxel_stop(pname, reason)
|
||||||
hud_event.new(pname, {
|
hud_event.new(pname, {
|
||||||
name = "ctf_classes:paxel_stop",
|
name = "ctf_classes:paxel_stop",
|
||||||
color = "success",
|
color = "success",
|
||||||
value = table.concat({"Pillar digging stopped", reason, "- wait " .. DIG_COOLDOWN .. "s"}, " "),
|
value = table.concat({"Pillar digging stopped", reason or "unknown", "- wait " .. DIG_COOLDOWN .. "s"}, " "),
|
||||||
})
|
})
|
||||||
diggers[pname] = minetest.after(DIG_COOLDOWN, function() diggers[pname] = nil end)
|
diggers[pname] = minetest.after(DIG_COOLDOWN, function() diggers[pname] = nil end)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue