Skip to content

Commit

Permalink
Fixed spawning outside of cage + at v0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsimmo committed Dec 11, 2022
1 parent 8a97436 commit e6305e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

group = 'io.github.mdsimmo'
version = '0.8.1'
version = '0.8.2'

repositories {
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/github/mdsimmo/bomberman/game/Game.kt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class Game constructor(private val save: GameSave) : Formattable, Listener {

// Spawns are saved in temporary file to avoid needing to read the schematic on server load
private val spawns: Set<Location> by lazy {
(tempData.getList("spawns"))
(tempData.getList("spawn-points"))
?.filterIsInstance(Location::class.java)?.toSet()
?: searchSpawns().also { writeTempData("spawns", it.toList()) }
}
Expand Down Expand Up @@ -172,7 +172,7 @@ class Game constructor(private val save: GameSave) : Formattable, Listener {
it.getString("Text3").contains("[spawn]", ignoreCase = true) or
it.getString("Text4").contains("[spawn]", ignoreCase = true)
) {
spawns += BukkitAdapter.adapt(box.world, loc.subtract(clipboard.origin)).add(origin)
spawns += BukkitAdapter.adapt(box.world, loc.subtract(clipboard.origin)).add(origin).block.location
}
}
}
Expand Down

0 comments on commit e6305e1

Please sign in to comment.