mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-06-29 23:01:00 +02:00
nil check
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user