Skip to content

Commit 85536a1

Browse files
committed
Compat lower version
1 parent 332e7ad commit 85536a1

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>systems.kscott</groupId>
88
<artifactId>randomspawnplus</artifactId>
9-
<version>5.0.4</version>
9+
<version>5.0.5</version>
1010
<packaging>jar</packaging>
1111

1212
<name>RandomSpawnPlus</name>

src/main/java/systems/kscott/randomspawnplus/spawn/SpawnFinder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ public boolean checkSpawn(Location location) {
255255

256256
public int getHighestY(World world, int x, int z) {
257257
boolean debugMode = config.getBoolean("debug-mode");
258-
int i = 320;
259-
while (i > -64) {
258+
int i = world.getMaxHeight();
259+
while (i > world.getMinHeight()) {
260260
if (!Blocks.isEmpty(new Location(world, x, i, z).getBlock())) {
261261
if (debugMode) {
262262
plugin.getLogger().info(Integer.toString(i));

src/main/resources/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#############################
22
# RandomSpawnPlus5 #
3-
# Version 5.0.4 #
3+
# Version 5.0.5 #
44
# by @89apt89 & @Dreeam #
55
#############################
66

@@ -54,6 +54,7 @@ safe-blocks:
5454
# Will have priority over safe-blocks, but try not to have conflicts :)
5555
unsafe-blocks:
5656
- 'VINE'
57+
- 'AIR''
5758
5859
####################
5960
### Random Spawn ###

src/main/resources/lang.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#############################
22
# RandomSpawnPlus5 #
3-
# Version 5.0.4 #
3+
# Version 5.0.5 #
44
# by @89apt89 & @Dreeam #
55
#############################
66

0 commit comments

Comments
 (0)