Skip to content

Commit

Permalink
More redundant code
Browse files Browse the repository at this point in the history
Probably left over when he was trying to get the RegionCoordinates calculation right
  • Loading branch information
RoboMWM authored Sep 16, 2016
1 parent 1daec8a commit 4e7c6cc
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/me/ryanhamshire/PopulationDensity/PopulationDensity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1329,15 +1329,8 @@ public static void GuaranteeChunkLoaded(int x, int z) throws ChunkLoadException
public static Location getRegionCenter(RegionCoordinates region, boolean computeY)
{
int x, z;
if(region.x >= 0)
x = region.x * REGION_SIZE + REGION_SIZE / 2;
else
x = region.x * REGION_SIZE + REGION_SIZE / 2;

if(region.z >= 0)
z = region.z * REGION_SIZE + REGION_SIZE / 2;
else
z = region.z * REGION_SIZE + REGION_SIZE / 2;
x = region.x * REGION_SIZE + REGION_SIZE / 2;
z = region.z * REGION_SIZE + REGION_SIZE / 2;

Location center = new Location(ManagedWorld, x, PopulationDensity.instance.minimumRegionPostY, z);

Expand Down Expand Up @@ -1519,4 +1512,4 @@ boolean launchPlayer(Player player)
player.setGliding(false);
return true;
}
}
}

0 comments on commit 4e7c6cc

Please sign in to comment.