Only round the drop position when using bones mod

This commit is contained in:
stujones11 2014-04-15 21:55:23 +01:00
parent 9aaba7569c
commit b76508397f

@ -380,7 +380,6 @@ if ARMOR_DROP == true or ARMOR_DESTROY == true then
local name = player:get_player_name() local name = player:get_player_name()
local pos = player:getpos() local pos = player:getpos()
if name and pos then if name and pos then
pos = vector.round(pos)
local drop = {} local drop = {}
local player_inv = player:get_inventory() local player_inv = player:get_inventory()
local armor_inv = minetest.get_inventory({type="detached", name=name.."_armor"}) local armor_inv = minetest.get_inventory({type="detached", name=name.."_armor"})
@ -399,6 +398,7 @@ if ARMOR_DROP == true or ARMOR_DESTROY == true then
minetest.after(ARMOR_BONES_DELAY, function() minetest.after(ARMOR_BONES_DELAY, function()
local node = minetest.get_node(pos) local node = minetest.get_node(pos)
if node.name == "bones:bones" then if node.name == "bones:bones" then
pos = vector.round(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local owner = meta:get_string("owner") local owner = meta:get_string("owner")
local inv = meta:get_inventory() local inv = meta:get_inventory()