rebase on new update

This commit is contained in:
alexcrea 2026-06-12 19:58:46 +02:00
parent e2bbd66abf
commit 63a9b5b1c6
Signed by: alexcrea
GPG key ID: E59DF23EE2A2266C
7 changed files with 32 additions and 72 deletions

View file

@ -1,19 +0,0 @@
package xyz.alexcrea.cuanvil.util
import org.bukkit.Material
import org.bukkit.inventory.meta.Damageable
// I LOVE support of old versions and needing to do modules like that
// That truly is my favorite activity
// TODO clean this one of legacy removal branch
object MaxDamageCheckerUtil {
/**
* @return max damage or int max if not set
*/
fun getMaxDamage(type: Material, meta: Damageable): Int {
if(!meta.hasMaxDamage()) return type.maxDurability.toInt()
return meta.maxDamage
}
}