retiring blockpos
This commit is contained in:
1 parent
7a611c53fc
commit
fd0976de56
3 files changed
+3
-3
No files matched your search
@@ -28,7 +28,7 @@ public abstract class GuardianEntityMixin extends HostileEntity
|
|||||||
{
|
{
|
||||||
ElderGuardianEntity elderGuardian = new ElderGuardianEntity(EntityType.ELDER_GUARDIAN ,this.world);
|
ElderGuardianEntity elderGuardian = new ElderGuardianEntity(EntityType.ELDER_GUARDIAN ,this.world);
|
||||||
elderGuardian.refreshPositionAndAngles(this.getX(), this.getY(), this.getZ(), this.yaw, this.pitch);
|
elderGuardian.refreshPositionAndAngles(this.getX(), this.getY(), this.getZ(), this.yaw, this.pitch);
|
||||||
elderGuardian.initialize(this.world ,this.world.getLocalDifficulty(new BlockPos(elderGuardian)), SpawnType.CONVERSION, (EntityData)null, (CompoundTag)null);
|
elderGuardian.initialize(this.world ,this.world.getLocalDifficulty(elderGuardian.getBlockPos()), SpawnType.CONVERSION, (EntityData)null, (CompoundTag)null);
|
||||||
elderGuardian.setAiDisabled(this.isAiDisabled());
|
elderGuardian.setAiDisabled(this.isAiDisabled());
|
||||||
|
|
||||||
if (this.hasCustomName())
|
if (this.hasCustomName())
|
||||||
|
|||||||
@@ -2540,7 +2540,7 @@ public class CarpetExpression
|
|||||||
return LazyValue.NULL;
|
return LazyValue.NULL;
|
||||||
} else {
|
} else {
|
||||||
if (!hasTag && entity_1 instanceof MobEntity) {
|
if (!hasTag && entity_1 instanceof MobEntity) {
|
||||||
((MobEntity)entity_1).initialize(serverWorld, serverWorld.getLocalDifficulty(new BlockPos(entity_1)), SpawnType.COMMAND, null, null);
|
((MobEntity)entity_1).initialize(serverWorld, serverWorld.getLocalDifficulty(entity_1.getBlockPos()), SpawnType.COMMAND, null, null);
|
||||||
}
|
}
|
||||||
Value res = new EntityValue(entity_1);
|
Value res = new EntityValue(entity_1);
|
||||||
return (_c, _t) -> res;
|
return (_c, _t) -> res;
|
||||||
|
|||||||
@@ -444,7 +444,7 @@ public class SpawnReporter
|
|||||||
will_spawn += 1;
|
will_spawn += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mob.initialize(worldIn, worldIn.getLocalDifficulty(new BlockPos(mob)), SpawnType.NATURAL, null, null);
|
mob.initialize(worldIn, worldIn.getLocalDifficulty(mob.getBlockPos()), SpawnType.NATURAL, null, null);
|
||||||
// the code invokes onInitialSpawn after getCanSpawHere
|
// the code invokes onInitialSpawn after getCanSpawHere
|
||||||
fits = fits1 && worldIn.doesNotCollide(mob);
|
fits = fits1 && worldIn.doesNotCollide(mob);
|
||||||
if (fits)
|
if (fits)
|
||||||
|
|||||||
Reference in new issue
Block a user