Skip to content

Commit

Permalink
修正女仆妖精配置文件热重载不起作用
Browse files Browse the repository at this point in the history
  • Loading branch information
TartaricAcid committed Sep 20, 2024
1 parent b38ee5c commit 51681b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void addMobSpawnInfo(LevelEvent.PotentialSpawns event) {
if (event.getMobCategory() == MobCategory.MONSTER && dimensionIsOkay(dimension)) {
List<MobSpawnSettings.SpawnerData> 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) {
Expand Down

0 comments on commit 51681b7

Please sign in to comment.