26.2-snap-3
This commit is contained in:
1 parent
8335a91409
commit
29b3836ed9
22 files changed
+93
-80
No files matched your search
@@ -18,6 +18,7 @@ import net.minecraft.util.random.WeightedList;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.entity.EntitySpawnReason;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
import net.minecraft.world.entity.EntityTypes;
|
||||
import net.minecraft.world.entity.Mob;
|
||||
import net.minecraft.world.entity.MobCategory;
|
||||
import net.minecraft.world.entity.SpawnPlacements;
|
||||
@@ -456,7 +457,7 @@ public class SpawnReporter
|
||||
// && mob.canSpawn(worldIn) // entity collisions // mostly - except ocelots
|
||||
)
|
||||
{
|
||||
if (etype == EntityType.OCELOT)
|
||||
if (etype == EntityTypes.OCELOT)
|
||||
{
|
||||
BlockState blockState = worldIn.getBlockState(pos.below());
|
||||
if ((pos.getY() < worldIn.getSeaLevel()) || !(blockState.is(Blocks.GRASS_BLOCK) || blockState.is(BlockTags.LEAVES))) {
|
||||
|
||||
Reference in new issue
Block a user