Skip to content

Commit 5eb952f

Browse files
authored
fix(mapper): Resolve LUA runtime error in make_room
copy and paste error from make_room to handle_move resulting in runtime error Closes #41 by passing the direction id into ConnectExitStub rather than a non-existent value.
1 parent b4e4d40 commit 5eb952f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prs-mapper.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ local function handle_move()
180180
local exit_coords_delta = move_vectors[stubmap[v]]
181181
local exit_room_id = get_room_id_by_coordinates(info.area, coords[1] + exit_coords_delta[1], coords[2] + exit_coords_delta[2], coords[3] + exit_coords_delta[3])
182182
if exit_room_id ~= nill then
183-
connectExitStub(room_id, dir)
183+
connectExitStub(room_id, v)
184184
end
185185
end
186186
end
@@ -369,4 +369,4 @@ map.events.centering_id = registerAnonymousEventHandler("gmcp.Char.room", functi
369369
if room_id ~= nil then
370370
centerview(room_id)
371371
end
372-
end)
372+
end)

0 commit comments

Comments
 (0)