Make sure we have access to certain biome Keys
This commit is contained in:
parent
f2c87a6eb2
commit
26cd2e6c19
18 changed files with 143 additions and 107 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue