From 5c050f3516d58cc670aedd683ff87213cc907952 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Fri, 28 Jun 2024 11:13:44 +0100 Subject: [PATCH] harden seed placement --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index bdeb4f6..1916a99 100644 --- a/init.lua +++ b/init.lua @@ -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