Fix potential bug with new bone location method

This commit is contained in:
stujones11 2017-02-24 23:00:03 +00:00
parent 37b10d1cee
commit 190614d47b

View File

@ -516,8 +516,9 @@ if ARMOR_DROP == true or ARMOR_DESTROY == true then
local minp = vector.subtract(pos, 8)
local bones = minetest.find_nodes_in_area(minp, maxp, {"bones:bones"})
for _, p in pairs(bones) do
meta = minetest.get_meta(p)
if meta:get_string("owner") == name then
local m = minetest.get_meta(p)
if m:get_string("owner") == name then
meta = m
break
end
end