You've already forked Arcturus-Morningstar-Extended
mirror of
https://github.com/duckietm/Arcturus-Morningstar-Extended.git
synced 2026-06-20 15:36:17 +00:00
🆙 Fix the chatbubble
This commit is contained in:
@@ -48,12 +48,24 @@ public class RoomChatMessage implements Runnable, ISerialize, DatabaseLoggable {
|
|||||||
} else {
|
} else {
|
||||||
this.message = message.packet.readString();
|
this.message = message.packet.readString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.habbo = message.client.getHabbo();
|
||||||
|
this.roomUnitId = this.habbo.getRoomUnit().getId();
|
||||||
|
|
||||||
|
RoomChatMessageBubbles userBubble = this.habbo.getHabboStats().chatColor;
|
||||||
|
|
||||||
|
int bubbleId = message.packet.readInt();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.bubble = RoomChatMessageBubbles.getBubble(message.packet.readInt());
|
this.bubble = RoomChatMessageBubbles.getBubble(bubbleId);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
this.bubble = RoomChatMessageBubbles.NORMAL;
|
this.bubble = RoomChatMessageBubbles.NORMAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (userBubble != null && this.bubble.isOverridable()) {
|
||||||
|
this.bubble = userBubble;
|
||||||
|
}
|
||||||
|
|
||||||
this.RoomChatColour = message.packet.readString();
|
this.RoomChatColour = message.packet.readString();
|
||||||
|
|
||||||
if (!message.client.getHabbo().hasPermission(Permission.ACC_ANYCHATCOLOR)) {
|
if (!message.client.getHabbo().hasPermission(Permission.ACC_ANYCHATCOLOR)) {
|
||||||
@@ -65,13 +77,9 @@ public class RoomChatMessage implements Runnable, ISerialize, DatabaseLoggable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.habbo = message.client.getHabbo();
|
|
||||||
this.roomUnitId = this.habbo.getRoomUnit().getId();
|
|
||||||
this.unfilteredMessage = this.message;
|
this.unfilteredMessage = this.message;
|
||||||
this.timestamp = Emulator.getIntUnixTimestamp();
|
this.timestamp = Emulator.getIntUnixTimestamp();
|
||||||
|
|
||||||
this.checkEmotion();
|
this.checkEmotion();
|
||||||
|
|
||||||
this.filter();
|
this.filter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user