From 5124ad64dd29081b8a51b9a247e0c3427e0a4a88 Mon Sep 17 00:00:00 2001 From: Rektroth Date: Tue, 23 Apr 2024 17:29:33 -0400 Subject: [PATCH] formatting --- .../rektroth/whiteout/mixin/server/PlayerManagerMixin.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/github/rektroth/whiteout/mixin/server/PlayerManagerMixin.java b/src/main/java/io/github/rektroth/whiteout/mixin/server/PlayerManagerMixin.java index fb27d91..1a96561 100644 --- a/src/main/java/io/github/rektroth/whiteout/mixin/server/PlayerManagerMixin.java +++ b/src/main/java/io/github/rektroth/whiteout/mixin/server/PlayerManagerMixin.java @@ -26,8 +26,7 @@ public abstract class PlayerManagerMixin { private static final SimpleDateFormat DATE_FORMATTER = new SimpleDateFormat("yyyy-MM-dd 'at' HH:mm:ss z"); @Inject(at = @At("HEAD"), method = "checkCanJoin(Ljava/net/SocketAddress;Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/text/Text;", cancellable = true) - private void fixedBanCheck(SocketAddress address, GameProfile profile, CallbackInfoReturnable ci) - { + private void fixedBanCheck(SocketAddress address, GameProfile profile, CallbackInfoReturnable ci) { if (((PlayerManagerAccessor)((PlayerManager)(Object)this)).getBannedProfiles().contains(profile)) { BannedPlayerEntry bannedPlayerEntry = (BannedPlayerEntry)((PlayerManagerAccessor)((PlayerManager)(Object)this)).getBannedProfiles().get(profile); @@ -46,8 +45,7 @@ private void fixedBanCheck(SocketAddress address, GameProfile profile, CallbackI @Redirect( at = @At(value = "INVOKE", target = "Lnet/minecraft/server/BannedPlayerList;contains(Lcom/mojang/authlib/GameProfile;)Z"), method = "checkCanJoin(Ljava/net/SocketAddress;Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/text/Text;") - private boolean skipBadBanCheck(BannedPlayerList bannedProfiles, GameProfile profile) - { + private boolean skipBadBanCheck(BannedPlayerList bannedProfiles, GameProfile profile) { return false; } }