Make shulker box drop correctly after push

This commit is contained in:
Wuzzy 2017-03-30 02:32:46 +02:00
parent 302f66977a
commit d496ed941b
1 changed files with 1 additions and 2 deletions

View File

@ -541,9 +541,8 @@ for color, desc in pairs(boxtypes) do
return nil return nil
end end
end, end,
after_dig_node = function(pos, oldnode, oldmetadata, digger) on_destruct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:from_table(oldmetadata)
local inv = meta:get_inventory() local inv = meta:get_inventory()
local items = {} local items = {}
for i=1, inv:get_size("main") do for i=1, inv:get_size("main") do