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

View File

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