isaacscript-common 1.0.579 → 1.0.580
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.
- package/dist/functions/rooms.lua +2 -2
- package/package.json +1 -1
package/dist/functions/rooms.lua
CHANGED
|
@@ -87,7 +87,7 @@ function ____exports.changeRoom(self, roomGridIndex)
|
|
|
87
87
|
local level = game:GetLevel()
|
|
88
88
|
local roomData = ____exports.getRoomData(nil, roomGridIndex)
|
|
89
89
|
if roomData == nil then
|
|
90
|
-
error(("Failed to change the room to
|
|
90
|
+
error(("Failed to change the room to grid index " .. tostring(roomGridIndex)) .. " because that room does not exist.")
|
|
91
91
|
end
|
|
92
92
|
level.LeaveDoor = -1
|
|
93
93
|
game:ChangeRoom(roomGridIndex)
|
|
@@ -323,7 +323,7 @@ function ____exports.teleport(self, roomGridIndex, direction, roomTransitionAnim
|
|
|
323
323
|
local level = game:GetLevel()
|
|
324
324
|
local roomData = ____exports.getRoomData(nil, roomGridIndex)
|
|
325
325
|
if roomData == nil then
|
|
326
|
-
error(("Failed to change the room to
|
|
326
|
+
error(("Failed to change the room to grid index " .. tostring(roomGridIndex)) .. " because that room does not exist.")
|
|
327
327
|
end
|
|
328
328
|
level.LeaveDoor = -1
|
|
329
329
|
game:StartRoomTransition(roomGridIndex, direction, roomTransitionAnim)
|