From 4eabd8512adaa3fb029379d99598045d73cdfa4d Mon Sep 17 00:00:00 2001 From: stujones11 Date: Wed, 6 May 2015 20:56:28 +0100 Subject: [PATCH] Only round the drop position for bones (deja vu) --- 3d_armor/armor.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/3d_armor/armor.lua b/3d_armor/armor.lua index 875e126..1b2c6e5 100644 --- a/3d_armor/armor.lua +++ b/3d_armor/armor.lua @@ -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