From f37f8b6bca87fce71f592b996acc64d639f576fc Mon Sep 17 00:00:00 2001 From: kabou Date: Sat, 2 Apr 2022 00:35:51 +0200 Subject: [PATCH] Return itemstack in `composter_harvest()`. * `composter_harvest()` is a `on_rightclick` handler and should return what remains of the ItemStack that was passed to it. --- mods/ITEMS/mcl_composters/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_composters/init.lua b/mods/ITEMS/mcl_composters/init.lua index 2729ffb8e0..53f8757bbc 100644 --- a/mods/ITEMS/mcl_composters/init.lua +++ b/mods/ITEMS/mcl_composters/init.lua @@ -116,7 +116,7 @@ local function composter_harvest(pos, node, player, itemstack, pointed_thing) -- handler for harvesting bone meal from a ready composter when rightclicked -- if not player or (player:get_player_control() and player:get_player_control().sneak) then - return + return itemstack end local name = player:get_player_name() if is_protected(pos, name) then @@ -128,7 +128,7 @@ local function composter_harvest(pos, node, player, itemstack, pointed_thing) -- spawn bone meal item (wtf dye?! is this how they make white cocoa) add_item(pos, "mcl_dye:white") -- TODO play some sounds - + return itemstack end local function composter_get_nodeboxes(level)