24w05a
This commit is contained in:
1 parent
14d2c1bcd7
commit
dcb45c93b8
17 files changed
+46
-37
No files matched your search
@@ -75,7 +75,7 @@ public class BlockInfo
|
||||
private static Component wander_chances(BlockPos pos, ServerLevel worldIn)
|
||||
{
|
||||
PathfinderMob creature = new ZombifiedPiglin(EntityType.ZOMBIFIED_PIGLIN, worldIn);
|
||||
creature.finalizeSpawn(worldIn, worldIn.getCurrentDifficultyAt(pos), MobSpawnType.NATURAL, null, null);
|
||||
creature.finalizeSpawn(worldIn, worldIn.getCurrentDifficultyAt(pos), MobSpawnType.NATURAL, null);
|
||||
creature.moveTo(pos, 0.0F, 0.0F);
|
||||
RandomStrollGoal wander = new RandomStrollGoal(creature, 0.8D);
|
||||
int success = 0;
|
||||
|
||||
@@ -459,7 +459,7 @@ public class SpawnReporter
|
||||
willSpawn += 1;
|
||||
}
|
||||
}
|
||||
mob.finalizeSpawn(worldIn, worldIn.getCurrentDifficultyAt(mob.blockPosition()), MobSpawnType.NATURAL, null, null);
|
||||
mob.finalizeSpawn(worldIn, worldIn.getCurrentDifficultyAt(mob.blockPosition()), MobSpawnType.NATURAL, null);
|
||||
// the code invokes onInitialSpawn after getCanSpawHere
|
||||
fits = fits && worldIn.noCollision(mob);
|
||||
|
||||
|
||||
Reference in new issue
Block a user