-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Run breakdown #499
base: dev
Are you sure you want to change the base?
feat: Run breakdown #499
Conversation
no idea why it decided to delete |
@@ -150,7 +151,7 @@ object DungeonListener { | |||
if (room.foundSecrets != sec) { | |||
room.foundSecrets = sec | |||
if (team.size > 1) | |||
WSClient.sendPacketAsync(C2SPacketDungeonRoomSecret(SBInfo.server ?: return@setFoundSecrets, room.mainRoom.data.name, sec)) | |||
WSClient.sendPacketAsync(C2SPacketDungeonRoomSecret(SBInfo.server ?: return@setFoundSecrets, room.mainRoom.data.name, sec, mc.thePlayer.name)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the point of this? two players can have the same update at the same time and can be in the same room at the same time
additionally the server is aware of the sender of the packet
I can't really test rooms and secrets, since I can't keep a websocket connection for some reason, so would be nice if someone else could test it <3 (Even on the version in Releases, I think it's internet issue) |
make sure you did not modify packets. the server cannot parse modified packets due to protobuf |
Ugly design, open for suggestions!