From 5c4031b836d9790e033bd78612228973fabc0150 Mon Sep 17 00:00:00 2001 From: Helvetica Volubi Date: Wed, 3 Dec 2025 17:11:36 +0800 Subject: [PATCH] [ci skip] fixup template & comment --- .github/ISSUE_TEMPLATE/bug-report.yml | 6 +++--- .../main/java/fun/bm/lophine/utils/EntitiesCounterUtil.java | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index 19ce86b..0db9c6e 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -76,9 +76,9 @@ body: Example files (or folders): - \spigot.yml - \bukkit.yml - - \config\* - - \lophine_config\* - - \luminol_config\* + - \config\\\* + - \lophine_config\\\* + - \luminol_config\\\* - type: textarea id: other attributes: 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 5af8701..0a553b9 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 @@ -73,6 +73,7 @@ public class EntitiesCounterUtil { public static NaturalSpawner.SpawnState runRemainingTasks( ServerLevel level, int spawnableChunkCount, Iterable entities, NaturalSpawner.ChunkGetter chunkGetter, LocalMobCapCalculator calculator, final boolean countMobs ) { + // Lophine start - Copy from net/minecraft/world/level/NaturalSpawner Object2IntOpenHashMap map = mobsMap.get(level); if (map == null) return null; // skip if no data PotentialCalculator potentialCalculator = new PotentialCalculator(); @@ -96,5 +97,6 @@ public class EntitiesCounterUtil { }); } return new NaturalSpawner.SpawnState(spawnableChunkCount, map, potentialCalculator, calculator); + // Lophine end - Copy from net/minecraft/world/level/NaturalSpawner } }