mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2024-11-22 11:35:19 +01:00
Fixes
This commit is contained in:
parent
4a742d1ca1
commit
29c7996d92
@ -224,6 +224,10 @@ class MinionInventoryListener : Listener {
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.CHARGE_PRICE() <= 0) {
|
||||
return
|
||||
}
|
||||
|
||||
if (!itemCharge) {
|
||||
AxMinionsPlugin.integrations.getEconomyIntegration()?.let {
|
||||
minion.getOwner()?.let { player ->
|
||||
|
@ -38,8 +38,8 @@ class MinerMinionType : MinionType("miner", AxMinionsPlugin.INSTANCE.getResource
|
||||
}
|
||||
}
|
||||
}
|
||||
var generatorMode = false
|
||||
val whitelist = arrayListOf<Material>()
|
||||
private var generatorMode = false
|
||||
private val whitelist = arrayListOf<Material>()
|
||||
|
||||
override fun shouldRun(minion: Minion): Boolean {
|
||||
return MinionTicker.getTick() % minion.getNextAction() == 0L
|
||||
|
@ -34,6 +34,6 @@ class NMSHandler : NMSHandler {
|
||||
|
||||
override fun getExp(block: Block, itemStack: ItemStack): Int {
|
||||
val craftBlock = block as CraftBlock
|
||||
return craftBlock.nms.block.getExpDrop((block.state as CraftBlockState).handle, craftBlock.handle.minecraftWorld, CraftLocation.toBlockPosition(block.location), CraftItemStack.unwrap(itemStack), true)
|
||||
return craftBlock.nms.block.getExpDrop((block.state as CraftBlockState).handle, craftBlock.handle.minecraftWorld, CraftLocation.toBlockPosition(block.location), CraftItemStack.asNMSCopy(itemStack), true)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user