Disable "store xp" buttons when player has no xp

This commit is contained in:
DBotThePony 2023-03-16 23:36:23 +07:00
parent 5f95f9e75a
commit 13f140ac31
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -80,6 +80,10 @@ class EssenceStorageMenu @JvmOverloads constructor(
it.isCreative || it.matteryPlayer?.isAndroid == true || servoSlot.item.item == MItems.ESSENCE_SERVO //|| it.itemsStream(true).anyMatch { it.item == MItems.ESSENCE_SERVO }
}
storeLevels.filter {
it.experienceProgress > 0f || it.experienceLevel > 0
}
dispenseLevels.filter {
it.isCreative || it.matteryPlayer?.isAndroid == true || servoSlot.item.item == MItems.ESSENCE_SERVO //|| it.itemsStream(true).anyMatch { it.item == MItems.ESSENCE_SERVO }
}