stop nil crash

This commit is contained in:
Vanessa Ezekowitz 2014-10-20 16:17:02 -04:00
parent 4f3495a9e4
commit 7a513e85b1

View File

@ -94,7 +94,7 @@ for i in ipairs(lilies_list) do
place_pos = pt.above place_pos = pt.above
end 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 :-) local nodename = "default:cobble" -- if this block appears, something went....wrong :-)