From 61bfac0fa201253fa1327f7eba1e81445bed5583 Mon Sep 17 00:00:00 2001 From: acmgit Date: Sun, 2 Jun 2019 19:50:20 +0200 Subject: [PATCH] Prevent potential crash caused by moss growth ABM --- mods/default/functions.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/default/functions.lua b/mods/default/functions.lua index e1e3e186..183b5597 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -560,7 +560,9 @@ minetest.register_abm({ catch_up = false, action = function(pos, node) node.name = moss_correspondences[node.name] - minetest.set_node(pos, node) + if node.name then + minetest.set_node(pos, node) + end end })