Don't erase item metadata when out of dropper

This commit is contained in:
Wuzzy 2017-06-12 22:27:37 +02:00
parent 1d91d94ee6
commit 06a8a810be

View File

@ -75,7 +75,8 @@ local dropperdef = {
if #stacks >= 1 then if #stacks >= 1 then
local r = math.random(1, #stacks) local r = math.random(1, #stacks)
local stack = stacks[r].stack 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 local stack_id = stacks[r].stackpos
-- If it's a container, attempt to put it into the container -- If it's a container, attempt to put it into the container