Skip to content

Commit

Permalink
border bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgeousOne committed Apr 4, 2020
1 parent 9a6fe43 commit 6b58b0f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 26 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ target/
.idea/workspace.xml
.idea/modules.xml

*.iml
*.iml
.idea/misc.xml
18 changes: 0 additions & 18 deletions .idea/misc.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,17 @@ protected void levelOffSpikes(TerrainMap terrainMap) {
continue;

int floorHeight = terrainMap.getFloorHeight(x, z);
int maxNeighborFloorHeight = terrainMap.getFloorHeight(getHighestNeighborFloor(x, z, terrainMap));
int maxNeighborFloorHeight = terrainMap.getFloorHeight(getHighestNeighborFloor(x, z, terrainMap, null));

if (floorHeight >= maxNeighborFloorHeight + 2)
terrainMap.setFloorHeight(x, z, floorHeight + getAverageHeightDiffToNeighborFloors(terrainMap, x, z));
}
}
}

protected Vec2 getHighestNeighborFloor(int x, int z, TerrainMap terrainMap) {
return getHighestNeighborFloor(x, z, terrainMap, null);
}

protected Vec2 getHighestNeighborFloor(int x, int z, TerrainMap terrainMap, MazeAreaType areaType) {

Vec2 maxNeighborFloor = null;
Vec2 maxNeighborFloor = new Vec2(x, z);
int maxNeighborFloorHeight = 0;

for (Direction dir : Direction.values()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

public class UpdateCheck {

private static final String SPIGOT_URL = "https://api.spigotmc.org/legacy/update.php?resource=%d";
private static final String SPIGOT_URL = "https://api.spigotmc.org/legacy/update.php?resource=%d/";

private final JavaPlugin javaPlugin;

Expand Down

0 comments on commit 6b58b0f

Please sign in to comment.