Skip to content

Commit

Permalink
+ Bump version to 1.1.0
Browse files Browse the repository at this point in the history
+ Fixed a bug where shooting stars could spawn in caves
  • Loading branch information
TheLeCrafter committed Dec 23, 2021
1 parent a599af3 commit a372aa4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ plugins {
}

group = "dev.thelecrafter.plugins.ambientstars"
version = "1.0.3"
val versionType: String = "stable"
version = "1.1.0"

repositories {
mavenCentral()
Expand All @@ -34,7 +33,7 @@ tasks.shadowJar {
relocate("org.reflections", "$group.org.reflections")
relocate("io.papermc.lib", "$group.io.papermc.lib")
relocate("org.kohsuke", "$group.org.kohsuke")
archiveFileName.set("${project.name}-$versionType.jar")
archiveFileName.set("${project.name}-${project.version}.jar")
}

tasks.processResources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ class AmbientStarsPlugin : JavaPlugin() {
}

override fun onDisable() {
logger.log(Level.FINE, "Shutting down internal galaxy")
logger.log(Level.ALL, "Shutting down internal galaxy")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ object ShootingStars {
val location: Location = player.location.clone()
location.add(Random.nextDouble(26.0) - 13.0, Random.nextDouble(25.0, 35.0), Random.nextDouble(26.0) - 13.0)
if (location.block.type == Material.AIR) {
shootStar(location, player)
if (location.world.getHighestBlockAt(location).location.y > location.y) {
shootStar(location, player)
}
}
}
}
Expand Down

0 comments on commit a372aa4

Please sign in to comment.