mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 00:34:19 +00:00
Forge biome modifier validation
- Pass the modded loader into the generation registry so biome modifier output stays out of validation - Cover Forge modifiers on climate, attributes, effects and features against the canonical definition
This commit is contained in:
1 parent
3e4a2432bc
commit
7db46a8eb8
3 files changed
+109
-3
No files matched your search
+6
@@ -12,6 +12,7 @@ import net.minecraft.server.level.ServerPlayer;
|
||||
import net.minecraft.world.entity.EntitySpawnReason;
|
||||
import net.minecraft.world.entity.Mob;
|
||||
import net.minecraft.world.level.ServerLevelAccessor;
|
||||
import net.minecraft.world.level.biome.Biome;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
@@ -91,6 +92,11 @@ public class ModdedPlatformPathsTest {
|
||||
public boolean checkSpawnPosition(Mob mob, ServerLevelAccessor level, EntitySpawnReason reason) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Biome unmodifiedBiome(Biome biome) {
|
||||
return biome;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user