Skip to content

Commit e387f8c

Browse files
committed
fix: Fixed channelId reporting for RuflfesTransport
1 parent 409c89f commit e387f8c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

MLAPI.RufflesTransport/MLAPI.RufflesTransport.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</Reference>
2020
</ItemGroup>
2121
<ItemGroup>
22-
<PackageReference Include="Ruffles" Version="1.0.5" />
22+
<PackageReference Include="Ruffles" Version="2.0.1" />
2323
</ItemGroup>
2424
<ItemGroup>
2525
<ProjectReference Include="..\MLAPI\MLAPI.csproj" />

MLAPI.RufflesTransport/RufflesTransport.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ public override NetEventType PollEvent(out ulong clientId, out string channelNam
9494
payload = new ArraySegment<byte>();
9595
}
9696

97-
// TODO: FIX, ruffles needs to give us the channel
98-
channelName = channelIdToName[0];
97+
channelName = channelIdToName[@event.ChannelId];
9998

10099
// Translate NetworkEventType to NetEventType
101100
switch (@event.Type)

0 commit comments

Comments
 (0)