isaacscript-common 1.0.502 → 1.0.503
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
local ____exports = {}
|
|
3
3
|
local hasSubscriptions, postNewRoom, preEntitySpawn, checkRoomChanged, currentRoomTopLeftWallPtrHash
|
|
4
4
|
local ____gridEntity = require("functions.gridEntity")
|
|
5
|
-
local
|
|
5
|
+
local getTopLeftWallGridIndex = ____gridEntity.getTopLeftWallGridIndex
|
|
6
|
+
local spawnGridEntity = ____gridEntity.spawnGridEntity
|
|
6
7
|
local ____postNewRoomEarly = require("callbacks.subscriptions.postNewRoomEarly")
|
|
7
8
|
local postNewRoomEarlyFire = ____postNewRoomEarly.postNewRoomEarlyFire
|
|
8
9
|
local postNewRoomEarlyHasSubscriptions = ____postNewRoomEarly.postNewRoomEarlyHasSubscriptions
|
|
@@ -22,7 +23,13 @@ function preEntitySpawn(self)
|
|
|
22
23
|
checkRoomChanged(nil)
|
|
23
24
|
end
|
|
24
25
|
function checkRoomChanged(self)
|
|
25
|
-
local
|
|
26
|
+
local game = Game()
|
|
27
|
+
local room = game:GetRoom()
|
|
28
|
+
local topLeftWallGridIndex = getTopLeftWallGridIndex(nil)
|
|
29
|
+
local topLeftWall = room:GetGridEntity(topLeftWallGridIndex)
|
|
30
|
+
if topLeftWall == nil then
|
|
31
|
+
topLeftWall = spawnGridEntity(nil, GridEntityType.GRID_WALL, topLeftWallGridIndex)
|
|
32
|
+
end
|
|
26
33
|
local ____temp_0
|
|
27
34
|
if topLeftWall == nil then
|
|
28
35
|
____temp_0 = nil
|