From 6fe8625722bde349403d19755c3e3e55ac29e528 Mon Sep 17 00:00:00 2001 From: XiaoMoMi Date: Mon, 18 Nov 2024 03:06:23 +0800 Subject: [PATCH] Update TagRendererImpl.java --- .../customnameplates/backend/feature/tag/TagRendererImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main/java/net/momirealms/customnameplates/backend/feature/tag/TagRendererImpl.java b/backend/src/main/java/net/momirealms/customnameplates/backend/feature/tag/TagRendererImpl.java index 17d6120f..7a5b872e 100644 --- a/backend/src/main/java/net/momirealms/customnameplates/backend/feature/tag/TagRendererImpl.java +++ b/backend/src/main/java/net/momirealms/customnameplates/backend/feature/tag/TagRendererImpl.java @@ -76,6 +76,8 @@ public boolean isValid() { @Override public void onTick() { + if (!isValid()) return; + Set playersToUpdatePassengers = new ObjectOpenHashSet<>(); Set tagTranslationUpdates = new ObjectOpenHashSet<>();