Stack overflow fix

This commit is contained in:
paulevsGitch 2021-03-18 02:42:18 +03:00
parent abefc062ee
commit 46c6e9b936
2 changed files with 9 additions and 2 deletions

View file

@ -0,0 +1,5 @@
package ru.betterend.mixin.common;
public interface WeightedBiomePickerAccessor {
}

View file

@ -185,9 +185,11 @@ public class EndBiome {
public void updateActualBiomes(Registry<Biome> biomeRegistry) {
subbiomes.forEach((sub) -> {
sub.updateActualBiomes(biomeRegistry);
if (sub != this) {
sub.updateActualBiomes(biomeRegistry);
}
});
if (edge != null) {
if (edge != null && edge != this) {
edge.updateActualBiomes(biomeRegistry);
}
this.actualBiome = biomeRegistry.get(mcID);