Skip to content

Commit

Permalink
Workaround for #983
Browse files Browse the repository at this point in the history
  • Loading branch information
maxanier committed Sep 27, 2021
1 parent 107b5a6 commit 4f24933
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/lib/java/de/teamlapen/lib/lib/util/SimpleSpawnerLogic.java
Expand Up @@ -182,9 +182,14 @@ public void updateSpawner() {
if (limitType != null) {
@Nullable
WorldEntitySpawner.EntityDensityManager densityManager = ((ServerWorld) this.world).getChunkSource().getLastSpawnState();
if (densityManager != null && !densityManager.canSpawnForCategory(limitType)) {
this.resetTimer();
break;
try {
if (densityManager != null && !densityManager.canSpawnForCategory(limitType)) {
this.resetTimer();
break;
}
} catch (NoSuchMethodError e) {
//Workaround for https://github.com/TeamLapen/Vampirism/issues/983
//Maybe remove when https://github.com/magmafoundation/Magma-1.16.x/issues/154 is solved
}

}
Expand Down

0 comments on commit 4f24933

Please sign in to comment.