mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-26 09:54:49 +00:00
Delete previous chat messages of the same type
This uses a custom ComputerCraft packet to send chat messages to the client. When received, we delete all messages of the same category before sending the new ones. This avoids cluttering the chat with near-identical messages, and helps make working with the "individual dump" command easier, as the previous computer's dump output is deleted. Also change the max height of the TextTable to 18, so it fits within Minecraft's default chat limit.
This commit is contained in:
@@ -33,6 +33,7 @@ public class ComputerCraftPacket
|
||||
public static final byte ComputerTerminalChanged = 8;
|
||||
public static final byte ComputerDeleted = 9;
|
||||
public static final byte PlayRecord = 10;
|
||||
public static final byte PostChat = 11;
|
||||
|
||||
// Packet class
|
||||
public byte m_packetType;
|
||||
|
||||
Reference in New Issue
Block a user