mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2024-11-28 12:35:38 +01:00
Try fix
This commit is contained in:
parent
10d4309b5e
commit
912bea3f69
@ -12,12 +12,16 @@ class SuperiorSkyBlock2Integration : IslandIntegration {
|
||||
override fun getIslandPlaced(player: Player): Int {
|
||||
var placed = 0
|
||||
SuperiorSkyblockAPI.getPlayer(player.uniqueId).island?.getIslandMembers(true)?.forEach {
|
||||
val a = AxMinionsAPI.INSTANCE.getDataHandler().getMinionAmount(it.uniqueId)
|
||||
placed += a
|
||||
if (Config.DEBUG()) {
|
||||
println("Member: ${it.name}")
|
||||
println("Member: ${it.name} - $a")
|
||||
}
|
||||
placed += AxMinionsAPI.INSTANCE.getDataHandler().getMinionAmount(it.uniqueId)
|
||||
}
|
||||
|
||||
if (Config.DEBUG()) {
|
||||
println("Placed total: $placed")
|
||||
}
|
||||
return placed
|
||||
}
|
||||
|
||||
|
@ -121,10 +121,11 @@ class MinerMinionType : MinionType("miner", AxMinionsPlugin.INSTANCE.getResource
|
||||
drops.forEach {
|
||||
amount += it.amount
|
||||
}
|
||||
minion.addToContainerOrDrop(drops)
|
||||
block.type = Material.AIR
|
||||
val integration = AxMinionsAPI.INSTANCE.getIntegrations().getIslandIntegration()
|
||||
integration?.handleBlockBreak(block)
|
||||
|
||||
minion.addToContainerOrDrop(drops)
|
||||
block.type = Material.AIR
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -167,10 +168,11 @@ class MinerMinionType : MinionType("miner", AxMinionsPlugin.INSTANCE.getResource
|
||||
drops.forEach {
|
||||
amount += it.amount
|
||||
}
|
||||
minion.addToContainerOrDrop(drops)
|
||||
block.type = Material.AIR
|
||||
val integration = AxMinionsAPI.INSTANCE.getIntegrations().getIslandIntegration()
|
||||
integration?.handleBlockBreak(block)
|
||||
|
||||
minion.addToContainerOrDrop(drops)
|
||||
block.type = Material.AIR
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -206,10 +208,11 @@ class MinerMinionType : MinionType("miner", AxMinionsPlugin.INSTANCE.getResource
|
||||
drops.forEach {
|
||||
amount += it.amount
|
||||
}
|
||||
minion.addToContainerOrDrop(drops)
|
||||
block.type = Material.AIR
|
||||
val integration = AxMinionsAPI.INSTANCE.getIntegrations().getIslandIntegration()
|
||||
integration?.handleBlockBreak(block)
|
||||
|
||||
minion.addToContainerOrDrop(drops)
|
||||
block.type = Material.AIR
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -246,10 +249,11 @@ class MinerMinionType : MinionType("miner", AxMinionsPlugin.INSTANCE.getResource
|
||||
drops.forEach { item ->
|
||||
amount += item.amount
|
||||
}
|
||||
minion.addToContainerOrDrop(drops)
|
||||
block.type = Material.AIR
|
||||
val integration = AxMinionsAPI.INSTANCE.getIntegrations().getIslandIntegration()
|
||||
integration?.handleBlockBreak(block)
|
||||
|
||||
minion.addToContainerOrDrop(drops)
|
||||
block.type = Material.AIR
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -299,10 +303,11 @@ class MinerMinionType : MinionType("miner", AxMinionsPlugin.INSTANCE.getResource
|
||||
amount += it.amount
|
||||
}
|
||||
|
||||
minion.addToContainerOrDrop(drops)
|
||||
block.type = Material.AIR
|
||||
val integration = AxMinionsAPI.INSTANCE.getIntegrations().getIslandIntegration()
|
||||
integration?.handleBlockBreak(block)
|
||||
|
||||
minion.addToContainerOrDrop(drops)
|
||||
block.type = Material.AIR
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user