mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 02:20:57 +00:00
feat: adapt allay-api 0.2.0
This commit is contained in:
@@ -79,7 +79,7 @@ object Versions {
|
||||
}
|
||||
|
||||
object Allay {
|
||||
const val api = "0.1.3"
|
||||
const val api = "0.2.0"
|
||||
}
|
||||
|
||||
object Minestom {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package com.dfsek.terra.allay.delegate;
|
||||
|
||||
import org.allaymc.api.item.data.ItemId;
|
||||
import org.allaymc.api.item.type.ItemType;
|
||||
import org.allaymc.api.registry.Registries;
|
||||
|
||||
import com.dfsek.terra.api.inventory.Item;
|
||||
|
||||
@@ -16,7 +14,7 @@ public final class AllayItemType implements Item {
|
||||
|
||||
public AllayItemType(ItemType<?> allayItemType) {
|
||||
this.allayItemType = allayItemType;
|
||||
this.maxDurability = Registries.ITEM_DATA.get(ItemId.fromIdentifier(allayItemType.getIdentifier())).maxDamage();
|
||||
this.maxDurability = allayItemType.getItemData().maxDamage();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user