1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2024-11-10 20:30:31 +01:00

harden seed placement

This commit is contained in:
tenplus1 2024-06-28 11:13:44 +01:00
parent 877f944641
commit 5c050f3516

View File

@ -498,7 +498,7 @@ function farming.place_seed(itemstack, placer, pointed_thing, plantname)
local pt = pointed_thing
-- check if pointing at a node
if not pt or pt.type ~= "node" then
if not itemstack or not pt or pt.type ~= "node" then
return
end