From 7a513e85b10b4c3cd1f90c38aa180e2d6bc1af06 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Mon, 20 Oct 2014 16:17:02 -0400 Subject: [PATCH] stop nil crash --- flowers_plus/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flowers_plus/init.lua b/flowers_plus/init.lua index 96647ac..67cfbf1 100644 --- a/flowers_plus/init.lua +++ b/flowers_plus/init.lua @@ -94,7 +94,7 @@ for i in ipairs(lilies_list) do place_pos = pt.above end - if not minetest.is_protected(place_pos, placer:get_player_name()) then + if place_pos and not minetest.is_protected(place_pos, placer:get_player_name()) then local nodename = "default:cobble" -- if this block appears, something went....wrong :-)