mc 26.1-snap-1

This commit is contained in:
gnembon committed 2025-12-17 17:05:15 +01:00
1 parent 4e160d235a
commit be1211dda7
24 files changed
+61 -60

No files matched your search

@@ -439,14 +439,14 @@ public class SpawnReporter
{
float f = x + 0.5F;
float f1 = z + 0.5F;
mob.snapTo(f, y, f1, worldIn.random.nextFloat() * 360.0F, 0.0F);
mob.snapTo(f, y, f1, worldIn.getRandom().nextFloat() * 360.0F, 0.0F);
fits = worldIn.noCollision(mob);
EntityType<?> etype = mob.getType();
for (int i = 0; i < 20; ++i)
{
if (
SpawnPlacements.checkSpawnRules(etype,worldIn, EntitySpawnReason.NATURAL, pos, worldIn.random) &&
SpawnPlacements.checkSpawnRules(etype,worldIn, EntitySpawnReason.NATURAL, pos, worldIn.getRandom()) &&
SpawnPlacements.isSpawnPositionOk(etype, worldIn, pos) &&
mob.checkSpawnRules(worldIn, EntitySpawnReason.NATURAL)
// && mob.canSpawn(worldIn) // entity collisions // mostly - except ocelots