Skip to content

Commit fd8664f

Browse files
committed
add some change
1 parent 3b6891e commit fd8664f

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
}
1010

1111
group = "net.azisaba"
12-
version = "6.19.0+1.15.2"
12+
version = "6.19.1+1.15.2"
1313

1414
java {
1515
toolchain.languageVersion.set(JavaLanguageVersion.of(11))
@@ -81,10 +81,13 @@ dependencies {
8181
compileOnly("com.github.MilkBowl:VaultAPI:1.7")
8282
compileOnly("com.github.MyPetORG.MyPet:mypet-api:5c8ceeac6a")
8383
compileOnly("de.keyle:knbt:0.0.5")
84-
compileOnly("com.github.Staartvin:Autorank-2:4.5.1")
84+
compileOnly("com.github.Staartvin:Autorank-2:4.5.1") {
85+
exclude("org.bukkit", "bukkit")
86+
}
8587
compileOnly("com.github.Staartvin:Statz:v1.5.5") {
8688
exclude("nl.lolmewn.stats", "Stats")
8789
exclude("me.staartvin", "PluginLibrary")
90+
exclude("org.bukkit", "bukkit")
8891
}
8992
}
9093

src/main/java/com/github/mori01231/lifecore/LifeCore.kt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,16 +200,17 @@ class LifeCore : JavaPlugin() {
200200
}
201201
if (Bukkit.getOnlinePlayers().isEmpty()) return@Runnable
202202
Bukkit.getWorlds().forEach world@ { world ->
203-
world.getEntitiesByClass(ItemFrame::class.java).forEach { itemFrame ->
204-
Bukkit.getScheduler().runTaskAsynchronously(this, Runnable {
203+
val list = world.getEntitiesByClass(ItemFrame::class.java)
204+
Bukkit.getScheduler().runTaskAsynchronously(this, Runnable {
205+
list.forEach { itemFrame ->
205206
val item = itemFrame.item
206207
Bukkit.getOnlinePlayers().forEach { player ->
207208
MapUtil.initializeMapRenderer(player, item)
208209
}
209-
})
210-
}
210+
}
211+
})
211212
}
212-
}, 200, 200)
213+
}, 20 * 30, 20 * 30)
213214

214215
Bukkit.getScheduler().runTaskTimer(this, Runnable {
215216
customBlockManager.getLoadedStates().forEach { (location, state) ->

0 commit comments

Comments
 (0)