From 51681b76ddaefed3effcf2fed3c216170ecb8a1b Mon Sep 17 00:00:00 2001 From: tartaric_acid Date: Fri, 20 Sep 2024 16:13:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=A5=B3=E4=BB=86=E5=A6=96?= =?UTF-8?q?=E7=B2=BE=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E7=83=AD=E9=87=8D?= =?UTF-8?q?=E8=BD=BD=E4=B8=8D=E8=B5=B7=E4=BD=9C=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../touhoulittlemaid/init/registry/MobSpawnInfoRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/tartaricacid/touhoulittlemaid/init/registry/MobSpawnInfoRegistry.java b/src/main/java/com/github/tartaricacid/touhoulittlemaid/init/registry/MobSpawnInfoRegistry.java index 03b368580..7c0187d18 100644 --- a/src/main/java/com/github/tartaricacid/touhoulittlemaid/init/registry/MobSpawnInfoRegistry.java +++ b/src/main/java/com/github/tartaricacid/touhoulittlemaid/init/registry/MobSpawnInfoRegistry.java @@ -32,7 +32,7 @@ public static void addMobSpawnInfo(LevelEvent.PotentialSpawns event) { if (event.getMobCategory() == MobCategory.MONSTER && dimensionIsOkay(dimension)) { List spawnerData = event.getSpawnerDataList(); boolean canZombieSpawn = spawnerData.stream().anyMatch(data -> data.type.equals(EntityType.ZOMBIE)); - if (SPAWNER_DATA == null) { + if (SPAWNER_DATA == null || SPAWNER_DATA.getWeight().asInt() != spawnProbability) { SPAWNER_DATA = new MobSpawnSettings.SpawnerData(InitEntities.FAIRY.get(), spawnProbability, 2, 4); } if (canZombieSpawn) {