mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-29 23:43:42 +01:00
Only round the drop position for bones (deja vu)
This commit is contained in:
parent
14a0eb8cca
commit
4eabd8512a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user