Shameful fix build

This commit is contained in:
Dominic Bridge 2024-01-05 23:03:51 +00:00
parent 1fcbdf55a9
commit aca78e8478
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ public class RoomChatMessage implements Runnable, ISerialize, DatabaseLoggable {
private byte emotion;
public RoomChatMessage(MessageHandler message) {
if (message.packet.getMessageId() == Incoming.whisperEvent) {
if (message.packet.getMessageId() == Incoming.whisperEvent.getMessageId()) {
String data = message.packet.readString();
this.targetHabbo = message.client.getHabbo().getRoomUnit().getRoom().getRoomUnitManager().getRoomHabboByUsername(data.split(" ")[0]);
this.message = data.substring(data.split(" ")[0].length() + 1);

View File

@ -102,7 +102,7 @@ public class IdleTimeoutHandler extends ChannelDuplexHandler {
* how to handle it if you are using multi revision?
*/
if(msg instanceof ClientMessage packet) {
if(packet.getMessageId() == Incoming.pongEvent) {
if(packet.getMessageId() == Incoming.pongEvent.getMessageId()) {
this.lastPongTime = System.nanoTime();
}
}