stop nil crash

This commit is contained in:
Vanessa Ezekowitz 2014-10-20 16:17:02 -04:00
parent 4f3495a9e4
commit 7a513e85b1
1 changed files with 1 additions and 1 deletions

View File

@ -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 :-)