Commit c4c73f1b by Jonathan Thomas

Hide auto-generated messages from briefly appearing from the mob (i.e. interact,…

Hide auto-generated messages from briefly appearing from the mob (i.e. interact, show, attack, arrival)
parent eae49404
Pipeline #13236 passed with stages
in 2 minutes 11 seconds
......@@ -14,6 +14,7 @@ All notable changes to **CreatureChat** are documented in this file. The format
- Fixed a bug which broadcasts death messages for any mob with a customName (now it must also have a character sheet)
- Prevent crash due to missing texture when max friend/enemy + right click on entity
- Fixed bug which caused a max friend to interact with both off hand + main hand, causing both a message + riding (only check main hand now)
- Hide auto-generated messages from briefly appearing from the mob (i.e. interact, show, attack, arrival)
## [1.2.0] - 2024-12-28
......
......@@ -365,6 +365,11 @@ public class ServerPackets {
entity.setPersistent();
}
// Make auto-generated message appear as a pending icon (attack, show/give, arrival)
if (chatData.sender == ChatDataManager.ChatSender.USER && chatData.auto_generated > 0) {
chatData.status = ChatDataManager.ChatStatus.PENDING;
}
// Iterate over all players and send the packet
for (ServerPlayerEntity player : serverInstance.getPlayerManager().getPlayerList()) {
PacketByteBuf buffer = new PacketByteBuf(Unpooled.buffer());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment