boi, 20w10a
This commit is contained in:
1 parent
6b36ac642b
commit
f7a2b8202b
20 files changed
+76
-68
No files matched your search
@@ -259,7 +259,7 @@ public class SpawnReporter
|
||||
if (!(entity instanceof MobEntity) || !((MobEntity)entity).isPersistent())
|
||||
{
|
||||
EntityType type = entity.getType();
|
||||
BlockPos pos = entity.getBlockPos();
|
||||
BlockPos pos = entity.getSenseCenterPos();
|
||||
lst.add( Messenger.c(
|
||||
"w - ",
|
||||
Messenger.tp("wb",pos),
|
||||
@@ -439,12 +439,12 @@ public class SpawnReporter
|
||||
|
||||
for (int i = 0; i < 20; ++i)
|
||||
{
|
||||
if (SpawnRestriction.canSpawn(mob.getType(),mob.getEntityWorld(), SpawnType.NATURAL, mob.getBlockPos(), mob.getEntityWorld().random))
|
||||
if (SpawnRestriction.canSpawn(mob.getType(),mob.getEntityWorld(), SpawnType.NATURAL, mob.getSenseCenterPos(), mob.getEntityWorld().random))
|
||||
{
|
||||
will_spawn += 1;
|
||||
}
|
||||
}
|
||||
mob.initialize(worldIn, worldIn.getLocalDifficulty(mob.getBlockPos()), SpawnType.NATURAL, null, null);
|
||||
mob.initialize(worldIn, worldIn.getLocalDifficulty(mob.getSenseCenterPos()), SpawnType.NATURAL, null, null);
|
||||
// the code invokes onInitialSpawn after getCanSpawHere
|
||||
fits = fits1 && worldIn.doesNotCollide(mob);
|
||||
if (fits)
|
||||
|
||||
Reference in new issue
Block a user