mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-12-27 19:20:39 +01:00
Fix disappearing entities when placing stands next to each other
This commit is contained in:
parent
b6a44057a6
commit
9de8cc12bb
@ -21,6 +21,7 @@ local function update_entity(pos)
|
||||
local node = minetest.get_node(pos)
|
||||
local objects = minetest.get_objects_inside_radius(pos, 1) or {}
|
||||
for _, obj in pairs(objects) do
|
||||
if vector.equals(obj:getpos(), pos) then
|
||||
local ent = obj:get_luaentity()
|
||||
if ent then
|
||||
if ent.name == "3d_armor_stand:armor_entity" then
|
||||
@ -33,6 +34,7 @@ local function update_entity(pos)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if object then
|
||||
if node.name ~= "3d_armor_stand:armor_stand" then
|
||||
object:remove()
|
||||
|
Loading…
Reference in New Issue
Block a user