Make sure we have access to certain biome Keys

This commit is contained in:
Frank 2022-12-09 17:03:38 +01:00
parent f2c87a6eb2
commit 26cd2e6c19
18 changed files with 143 additions and 107 deletions

View file

@ -51,7 +51,8 @@ public class CubozoaEntity extends AbstractSchoolingFish {
) {
SpawnGroupData data = super.finalizeSpawn(world, difficulty, spawnReason, entityData, entityTag);
if (BiomeAPI.getBiome(world.getBiome(blockPosition())).equals(EndBiomes.SULPHUR_SPRINGS)) {
if (BiomeAPI.getBiome(world.getBiome(blockPosition())).is(EndBiomes.SULPHUR_SPRINGS)) {
//TODO: 1.19.3 test if this still works
this.entityData.set(VARIANT, (byte) 1);
}