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