From 2446f3d76c948df37b101433f66a3d8567c66405 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 9 Apr 2023 08:57:36 +0100 Subject: [PATCH] use farming seed placer function --- crops/barley.lua | 6 +++--- crops/cotton.lua | 6 +++--- crops/hemp.lua | 6 +++--- crops/wheat.lua | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/crops/barley.lua b/crops/barley.lua index 0097fe6..9f3d2ba 100644 --- a/crops/barley.lua +++ b/crops/barley.lua @@ -15,9 +15,9 @@ minetest.register_node("farming:seed_barley", { sunlight_propagates = true, next_plant = "farming:barley_1", selection_box = farming.select, --- on_place = function(itemstack, placer, pointed_thing) --- return farming.place_seed(itemstack, placer, pointed_thing, "farming:barley_1") --- end + on_place = function(itemstack, placer, pointed_thing) + return farming.place_seed(itemstack, placer, pointed_thing, "farming:seed_barley") + end }) -- harvested barley diff --git a/crops/cotton.lua b/crops/cotton.lua index d8e2f12..1ea85bf 100644 --- a/crops/cotton.lua +++ b/crops/cotton.lua @@ -41,9 +41,9 @@ minetest.register_node("farming:seed_cotton", { sunlight_propagates = true, selection_box = farming.select, next_plant = "farming:cotton_1", --- on_place = function(itemstack, placer, pointed_thing) --- return farming.place_seed(itemstack, placer, pointed_thing, "farming:cotton_1") --- end + on_place = function(itemstack, placer, pointed_thing) + return farming.place_seed(itemstack, placer, pointed_thing, "farming:seed_cotton") + end }) -- cotton diff --git a/crops/hemp.lua b/crops/hemp.lua index 4e91999..9d19784 100644 --- a/crops/hemp.lua +++ b/crops/hemp.lua @@ -15,9 +15,9 @@ minetest.register_node("farming:seed_hemp", { sunlight_propagates = true, selection_box = farming.select, next_plant = "farming:hemp_1", --- on_place = function(itemstack, placer, pointed_thing) --- return farming.place_seed(itemstack, placer, pointed_thing, "farming:hemp_1") --- end + on_place = function(itemstack, placer, pointed_thing) + return farming.place_seed(itemstack, placer, pointed_thing, "farming:seed_hemp") + end }) -- harvested hemp diff --git a/crops/wheat.lua b/crops/wheat.lua index 6320aa7..252403e 100644 --- a/crops/wheat.lua +++ b/crops/wheat.lua @@ -15,9 +15,9 @@ minetest.register_node("farming:seed_wheat", { sunlight_propagates = true, selection_box = farming.select, next_plant = "farming:wheat_1", --- on_place = function(itemstack, placer, pointed_thing) --- return farming.place_seed(itemstack, placer, pointed_thing, "farming:wheat_1") --- end + on_place = function(itemstack, placer, pointed_thing) + return farming.place_seed(itemstack, placer, pointed_thing, "farming:seed_wheat") + end }) -- harvested wheat