Fix crash in debug log cleaner
Introduced when porting to 1.20.2 and not released yet. [no changelog]
This commit is contained in:
@@ -21,7 +21,7 @@ import java.util.Objects;
|
||||
@Mixin(ClientPlayNetworkHandler.class)
|
||||
public class DisableCommonPacketWarnings {
|
||||
|
||||
@Inject(method = "method_52801", at = @At("HEAD"))
|
||||
@Inject(method = "method_52801", at = @At("HEAD"), cancellable = true)
|
||||
public void onCustomPacketError(CustomPayload customPayload, CallbackInfo ci) {
|
||||
if (Objects.equals(customPayload.id(), Identifier.of("badlion", "mods"))) {
|
||||
ci.cancel();
|
||||
|
||||
Reference in New Issue
Block a user