mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-01-14 11:50:18 +01:00
harden seed placement
This commit is contained in:
parent
877f944641
commit
5c050f3516
2
init.lua
2
init.lua
@ -498,7 +498,7 @@ function farming.place_seed(itemstack, placer, pointed_thing, plantname)
|
|||||||
local pt = pointed_thing
|
local pt = pointed_thing
|
||||||
|
|
||||||
-- check if pointing at a node
|
-- 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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user