mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-25 01:49:30 +00:00
Update PacketConsumers.java
This commit is contained in:
@@ -499,7 +499,7 @@ public class PacketConsumers {
|
||||
};
|
||||
|
||||
public static final BiConsumer<NetWorkUser, ByteBufPacketEvent> SET_OBJECTIVE_1_20 = (user, event) -> {
|
||||
if (!Config.interceptSystemChat()) return;
|
||||
if (!Config.interceptScoreboard()) return;
|
||||
try {
|
||||
FriendlyByteBuf buf = event.getBuffer();
|
||||
String objective = buf.readUtf();
|
||||
@@ -526,7 +526,7 @@ public class PacketConsumers {
|
||||
};
|
||||
|
||||
public static final BiConsumer<NetWorkUser, ByteBufPacketEvent> SET_OBJECTIVE_1_20_3 = (user, event) -> {
|
||||
if (!Config.interceptSystemChat()) return;
|
||||
if (!Config.interceptScoreboard()) return;
|
||||
try {
|
||||
FriendlyByteBuf buf = event.getBuffer();
|
||||
String objective = buf.readUtf();
|
||||
|
||||
Reference in New Issue
Block a user