Skip to content

Commit

Permalink
add disable-item-frame-map-update config option
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Nov 10, 2024
1 parent ceb5908 commit 9fb08d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group = "net.azisaba"
version = "6.18.4+1.21.1"
version = "6.18.4a+1.21.1"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/github/mori01231/lifecore/LifeCore.kt
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ class LifeCore : JavaPlugin() {
}
}
if (Bukkit.getOnlinePlayers().isEmpty()) return@Runnable
if (config.getBoolean("disable-item-frame-map-update", false)) return@Runnable
Bukkit.getWorlds().forEach world@ { world ->
world.getEntitiesByClass(ItemFrame::class.java).forEach { itemFrame ->
Bukkit.getScheduler().runTaskAsynchronously(this, Runnable {
Expand Down

0 comments on commit 9fb08d6

Please sign in to comment.