Stack overflow fix
This commit is contained in:
parent
abefc062ee
commit
46c6e9b936
2 changed files with 9 additions and 2 deletions
|
@ -0,0 +1,5 @@
|
||||||
|
package ru.betterend.mixin.common;
|
||||||
|
|
||||||
|
public interface WeightedBiomePickerAccessor {
|
||||||
|
|
||||||
|
}
|
|
@ -185,9 +185,11 @@ public class EndBiome {
|
||||||
|
|
||||||
public void updateActualBiomes(Registry<Biome> biomeRegistry) {
|
public void updateActualBiomes(Registry<Biome> biomeRegistry) {
|
||||||
subbiomes.forEach((sub) -> {
|
subbiomes.forEach((sub) -> {
|
||||||
sub.updateActualBiomes(biomeRegistry);
|
if (sub != this) {
|
||||||
|
sub.updateActualBiomes(biomeRegistry);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
if (edge != null) {
|
if (edge != null && edge != this) {
|
||||||
edge.updateActualBiomes(biomeRegistry);
|
edge.updateActualBiomes(biomeRegistry);
|
||||||
}
|
}
|
||||||
this.actualBiome = biomeRegistry.get(mcID);
|
this.actualBiome = biomeRegistry.get(mcID);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue