From b76508397f908556f67f7dbd501864215688c943 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Tue, 15 Apr 2014 21:55:23 +0100 Subject: [PATCH] Only round the drop position when using bones mod --- 3d_armor/armor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3d_armor/armor.lua b/3d_armor/armor.lua index 5e9f98d..d03ae80 100644 --- a/3d_armor/armor.lua +++ b/3d_armor/armor.lua @@ -380,7 +380,6 @@ if ARMOR_DROP == true or ARMOR_DESTROY == true then local name = player:get_player_name() local pos = player:getpos() if name and pos then - pos = vector.round(pos) local drop = {} local player_inv = player:get_inventory() 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() local node = minetest.get_node(pos) if node.name == "bones:bones" then + pos = vector.round(pos) local meta = minetest.get_meta(pos) local owner = meta:get_string("owner") local inv = meta:get_inventory()