summaryrefslogtreecommitdiff
path: root/logic/MapGenerator.lua
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-15 22:16:26 +0800
committerEltrac <hi@guhub.cn>2025-03-15 22:16:26 +0800
commit940d4ec8f0f2c84f8e19617ca7bea9addc8545ce (patch)
treebe6c778a3f9833d7608874f2901b8cc840c37bc0 /logic/MapGenerator.lua
parent80ef97435f80d949077c2007d083e9250146cc7c (diff)
fix: player cannot enter a newly spawned door
Diffstat (limited to 'logic/MapGenerator.lua')
-rw-r--r--logic/MapGenerator.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/logic/MapGenerator.lua b/logic/MapGenerator.lua
index 095f2f3..cbf49b3 100644
--- a/logic/MapGenerator.lua
+++ b/logic/MapGenerator.lua
@@ -31,7 +31,7 @@ function mapGenerator.continue(roomCount, from)
-- try extending from the last room
local entranceDoor, exitDoor = room:connect(newMap[1])
-
+ G.BodyLifeCycleManager:create(entranceDoor, { entranceDoor.w, entranceDoor.h }, "static")
if exitDoor then
newMap[1]:removeDoor(exitDoor.location)
end