diff --git a/versions/snapshot/1.20/23w41a/patches/client/com/mojang/realmsclient/RealmsMainScreen.java.patch b/versions/snapshot/1.20/23w41a/patches/client/com/mojang/realmsclient/RealmsMainScreen.java.patch new file mode 100644 index 00000000..a9a70366 --- /dev/null +++ b/versions/snapshot/1.20/23w41a/patches/client/com/mojang/realmsclient/RealmsMainScreen.java.patch @@ -0,0 +1,12 @@ +--- a/com/mojang/realmsclient/RealmsMainScreen.java ++++ b/com/mojang/realmsclient/RealmsMainScreen.java +@@ -549,8 +549,7 @@ + + @Nullable + private RealmsServer getSelectedServer() { +- AbstractSelectionList.Entry abstractselectionlist$entry = this.realmSelectionList.getSelected(); +- return abstractselectionlist$entry instanceof RealmsMainScreen.ServerEntry realmsmainscreen$serverentry ? realmsmainscreen$serverentry.getServer() : null; ++ return this.realmSelectionList.getSelected() instanceof RealmsMainScreen.ServerEntry realmsmainscreen$serverentry ? realmsmainscreen$serverentry.getServer() : null; + } + + private void leaveServer(boolean p_193494_, final RealmsServer p_193495_) { diff --git a/versions/snapshot/1.20/23w41a/patches/joined/com/mojang/realmsclient/RealmsMainScreen.java.patch b/versions/snapshot/1.20/23w41a/patches/joined/com/mojang/realmsclient/RealmsMainScreen.java.patch new file mode 100644 index 00000000..75cea952 --- /dev/null +++ b/versions/snapshot/1.20/23w41a/patches/joined/com/mojang/realmsclient/RealmsMainScreen.java.patch @@ -0,0 +1,12 @@ +--- a/com/mojang/realmsclient/RealmsMainScreen.java ++++ b/com/mojang/realmsclient/RealmsMainScreen.java +@@ -552,8 +552,7 @@ + + @Nullable + private RealmsServer getSelectedServer() { +- AbstractSelectionList.Entry abstractselectionlist$entry = this.realmSelectionList.getSelected(); +- return abstractselectionlist$entry instanceof RealmsMainScreen.ServerEntry realmsmainscreen$serverentry ? realmsmainscreen$serverentry.getServer() : null; ++ return this.realmSelectionList.getSelected() instanceof RealmsMainScreen.ServerEntry realmsmainscreen$serverentry ? realmsmainscreen$serverentry.getServer() : null; + } + + private void leaveServer(boolean p_193494_, final RealmsServer p_193495_) { diff --git a/versions/snapshot/1.20/23w41a/patches/shared/net/minecraft/commands/Commands.java.patch b/versions/snapshot/1.20/23w41a/patches/shared/net/minecraft/commands/Commands.java.patch index 8ebd7bcb..7ef943ce 100644 --- a/versions/snapshot/1.20/23w41a/patches/shared/net/minecraft/commands/Commands.java.patch +++ b/versions/snapshot/1.20/23w41a/patches/shared/net/minecraft/commands/Commands.java.patch @@ -1,6 +1,6 @@ --- a/net/minecraft/commands/Commands.java +++ b/net/minecraft/commands/Commands.java -@@ -326,7 +326,7 @@ +@@ -336,7 +336,7 @@ ) { for(CommandNode commandnode : p_82113_.getChildren()) { if (commandnode.canUse(p_82115_)) { diff --git a/versions/snapshot/1.20/23w41a/patches/shared/net/minecraft/server/commands/ReturnCommand.java.patch b/versions/snapshot/1.20/23w41a/patches/shared/net/minecraft/server/commands/ReturnCommand.java.patch new file mode 100644 index 00000000..4ab3aab0 --- /dev/null +++ b/versions/snapshot/1.20/23w41a/patches/shared/net/minecraft/server/commands/ReturnCommand.java.patch @@ -0,0 +1,11 @@ +--- a/net/minecraft/server/commands/ReturnCommand.java ++++ b/net/minecraft/server/commands/ReturnCommand.java +@@ -15,7 +15,7 @@ + public class ReturnCommand { + public static > void register(CommandDispatcher p_282091_) { + p_282091_.register( +- LiteralArgumentBuilder.literal("return") ++ LiteralArgumentBuilder.literal("return") + .requires(p_305728_ -> p_305728_.hasPermission(2)) + .then( + RequiredArgumentBuilder.argument("value", IntegerArgumentType.integer()).executes(new ReturnCommand.ReturnValueCustomExecutor<>())