diff options
Diffstat (limited to 'crops/cocoa.lua')
-rw-r--r-- | crops/cocoa.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crops/cocoa.lua b/crops/cocoa.lua index 8424db4..19e9c6b 100644 --- a/crops/cocoa.lua +++ b/crops/cocoa.lua @@ -32,7 +32,7 @@ local function place_cocoa(itemstack, placer, pointed_thing, plantname) end -- is player planting crop? - local name = placer:get_player_name() or "" + local name = placer and placer:get_player_name() or "" -- check for protection if minetest.is_protected(pt.above, name) then |