1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2024-11-10 12:30:28 +01:00

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
if ARMOR_DESTROY == false then
minetest.after(ARMOR_BONES_DELAY, function()
pos = vector.round(pos)
local node = minetest.get_node(pos)
local node = minetest.get_node(vector.round(pos))
if node 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 inv = meta:get_inventory()
for _,stack in ipairs(drop) do