Skip to content

Commit

Permalink
Re-Center Power Spawner
Browse files Browse the repository at this point in the history
* re #3849
  • Loading branch information
HenryLoenwind committed Nov 19, 2016
1 parent 853e62f commit abf9ceb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ protected boolean trySpawnEntity() {
}

while (remainingSpawnTries-- > 0) {
double x = getPos().getX() + (worldObj.rand.nextDouble() - worldObj.rand.nextDouble()) * spawnRange;
double x = getPos().getX() + .5 + (worldObj.rand.nextDouble() - worldObj.rand.nextDouble()) * spawnRange;
double y = getPos().getY() + worldObj.rand.nextInt(3) - 1;
double z = getPos().getZ() + (worldObj.rand.nextDouble() - worldObj.rand.nextDouble()) * spawnRange;
double z = getPos().getZ() + .5 + (worldObj.rand.nextDouble() - worldObj.rand.nextDouble()) * spawnRange;

entity.setLocationAndAngles(x, y, z, worldObj.rand.nextFloat() * 360.0F, 0.0F);

Expand Down

0 comments on commit abf9ceb

Please sign in to comment.