Skip to content

Commit 61bfac0

Browse files
acmgitparamat
authored andcommittedJun 2, 2019
Prevent potential crash caused by moss growth ABM
1 parent e19f42d commit 61bfac0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎mods/default/functions.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,9 @@ minetest.register_abm({
560560
catch_up = false,
561561
action = function(pos, node)
562562
node.name = moss_correspondences[node.name]
563-
minetest.set_node(pos, node)
563+
if node.name then
564+
minetest.set_node(pos, node)
565+
end
564566
end
565567
})
566568

0 commit comments

Comments
 (0)
Please sign in to comment.