From 5e96851513c9aec8b662b8e77181b51f4ba6df16 Mon Sep 17 00:00:00 2001 From: Helvetica Volubi Date: Wed, 10 Dec 2025 02:52:55 +0800 Subject: [PATCH] fix a bug in entities counter --- gradle.properties | 2 +- .../src/main/java/fun/bm/lophine/utils/EntitiesCounterUtil.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 9bf7028..19e9b12 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ mcVersion=1.21.8 release=2 # 0 for skip release, 1 for pre-release, 2 for release -luminolRef=46252869190560b69e97c474e91aaa07ac480436 +luminolRef=7f354acbc49a52b3a6f7fbc634f96357333c8e59 org.gradle.configuration-cache=true org.gradle.caching=true diff --git a/lophine-server/src/main/java/fun/bm/lophine/utils/EntitiesCounterUtil.java b/lophine-server/src/main/java/fun/bm/lophine/utils/EntitiesCounterUtil.java index 42021ce..5bc0c75 100644 --- a/lophine-server/src/main/java/fun/bm/lophine/utils/EntitiesCounterUtil.java +++ b/lophine-server/src/main/java/fun/bm/lophine/utils/EntitiesCounterUtil.java @@ -55,7 +55,7 @@ public class EntitiesCounterUtil { synchronized (globalLoadedEntities) { globalLoadedEntities.get(level).remove(uniqueId); } - synchronized (mobsMap) { + synchronized (mobsAreaMap) { mobsAreaMap.get(level).remove(uniqueId); } }