rebase on new update

This commit is contained in:
alexcrea 2026-06-12 19:58:46 +02:00
parent f97e3c937d
commit c1d67a3821
Signed by: alexcrea
GPG key ID: E346CD16413450E3
7 changed files with 32 additions and 71 deletions

View file

@ -1,18 +0,0 @@
package xyz.alexcrea.cuanvil.util
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(meta: Damageable): Int {
if(!meta.hasMaxDamage()) return Integer.MAX_VALUE
return meta.maxDamage
}
}