Only round the drop position for bones (deja vu)

This commit is contained in:
stujones11 2015-05-06 20:56:28 +01:00
parent 14a0eb8cca
commit 4eabd8512a

View File

@ -555,11 +555,10 @@ if ARMOR_DROP == true or ARMOR_DESTROY == true then
end end
if ARMOR_DESTROY == false then if ARMOR_DESTROY == false then
minetest.after(ARMOR_BONES_DELAY, function() minetest.after(ARMOR_BONES_DELAY, function()
pos = vector.round(pos) local node = minetest.get_node(vector.round(pos))
local node = minetest.get_node(pos)
if node then if node then
if node.name == "bones:bones" then if node.name == "bones:bones" then
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(vector.round(pos))
local owner = meta:get_string("owner") local owner = meta:get_string("owner")
local inv = meta:get_inventory() local inv = meta:get_inventory()
for _,stack in ipairs(drop) do for _,stack in ipairs(drop) do