From 52d31e8e314d0326cf4702524aa6ea749edca2d0 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Sat, 30 Nov 2024 17:13:44 -0700 Subject: [PATCH] read server once --- .../cloud/minecraft/modded/internal/AdventureSupport.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cloud-minecraft-modded-common/src/main/java/org/incendo/cloud/minecraft/modded/internal/AdventureSupport.java b/cloud-minecraft-modded-common/src/main/java/org/incendo/cloud/minecraft/modded/internal/AdventureSupport.java index 4ef2764..efcc120 100644 --- a/cloud-minecraft-modded-common/src/main/java/org/incendo/cloud/minecraft/modded/internal/AdventureSupport.java +++ b/cloud-minecraft-modded-common/src/main/java/org/incendo/cloud/minecraft/modded/internal/AdventureSupport.java @@ -93,9 +93,8 @@ public MinecraftAudiences audiences() { final @Nullable MinecraftAudiences server = this.server; if (server == null) { return Objects.requireNonNull(this.client, "No audiences present"); - } else { - return this.server; } + return server; } /**