From: acmgit Date: Sun, 2 Jun 2019 17:50:20 +0000 (+0200) Subject: Prevent potential crash caused by moss growth ABM X-Git-Tag: 5.1.0~62 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=61bfac0fa201253fa1327f7eba1e81445bed5583;p=oweals%2Fminetest_game.git Prevent potential crash caused by moss growth ABM --- 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 })