revert position change for mega chests

This commit is contained in:
Buurazu authored and GitHub committed 2021-12-17 02:51:52 -05:00
1 parent 00b9346c7f
commit efca551ec9
1 file changed
+2 -1
+2 -1
View File
@@ -574,7 +574,8 @@ function EID:onGameUpdate()
local pos = entity.Position
for _, otherPos in ipairs(curPositions) do
if pos:Distance(otherPos[2]) == 0 then
--entity.Position = entity.Position + Vector(1,0)
-- adjust the position so Mega Chests can have both descriptions viewable
entity.Position = entity.Position + Vector(1,0)
entity:GetData()["EID_RenderOffset"] = Vector(10,0)
otherPos[1]:GetData()["EID_RenderOffset"] = Vector(-10,0)
end