From 06a8a810beb8d0cb517cdc7f747edcd52985445b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 12 Jun 2017 22:27:37 +0200 Subject: [PATCH] Don't erase item metadata when out of dropper --- mods/ITEMS/REDSTONE/mcl_droppers/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/REDSTONE/mcl_droppers/init.lua b/mods/ITEMS/REDSTONE/mcl_droppers/init.lua index 11a4843b0e..575f495eb6 100644 --- a/mods/ITEMS/REDSTONE/mcl_droppers/init.lua +++ b/mods/ITEMS/REDSTONE/mcl_droppers/init.lua @@ -75,7 +75,8 @@ local dropperdef = { if #stacks >= 1 then local r = math.random(1, #stacks) local stack = stacks[r].stack - local dropitem = ItemStack(stack:get_name()) + local dropitem = ItemStack(stack) + dropitem:set_count(1) local stack_id = stacks[r].stackpos -- If it's a container, attempt to put it into the container