summaryrefslogtreecommitdiff
path: root/crops/grapes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'crops/grapes.lua')
-rw-r--r--crops/grapes.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/crops/grapes.lua b/crops/grapes.lua
index 8781ece..d8c6c3f 100644
--- a/crops/grapes.lua
+++ b/crops/grapes.lua
@@ -27,7 +27,7 @@ local function place_grapes(itemstack, placer, pointed_thing, plantname)
end
-- is player planting seed?
- local name = placer:get_player_name() or ""
+ local name = placer and placer:get_player_name() or ""
-- check for protection
if minetest.is_protected(pt.under, name) then