File tree Expand file tree Collapse file tree
src/main/java/com/github/mori01231/lifecore Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ plugins {
99}
1010
1111group = " net.azisaba"
12- version = " 6.19.0 +1.15.2"
12+ version = " 6.19.1 +1.15.2"
1313
1414java {
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
Original file line number Diff line number Diff 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) ->
You can’t perform that action at this time.
0 commit comments