From 3559c7db86823dfe54c111309be72a2d384a9f35 Mon Sep 17 00:00:00 2001 From: BONNe Date: Fri, 16 Aug 2024 12:06:24 +0300 Subject: [PATCH] Fixes some compilation warnings. --- .../bonne/vaulthunters/jewelsorting/ae2/mixin/MixinRepo.java | 4 ++-- .../jewelsorting/vaulthunters/mixin/InvokerGearDataCache.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/lv/id/bonne/vaulthunters/jewelsorting/ae2/mixin/MixinRepo.java b/src/main/java/lv/id/bonne/vaulthunters/jewelsorting/ae2/mixin/MixinRepo.java index 85f01f4..1d12b11 100644 --- a/src/main/java/lv/id/bonne/vaulthunters/jewelsorting/ae2/mixin/MixinRepo.java +++ b/src/main/java/lv/id/bonne/vaulthunters/jewelsorting/ae2/mixin/MixinRepo.java @@ -202,10 +202,10 @@ else if (leftId == ModItems.INSCRIPTION.getRegistryName()) else if (leftId == ModItems.VAULT_CRYSTAL.getRegistryName()) { CrystalData leftData = CrystalData.empty(); - leftData.deserializeNBT(leftWhat.toTag().getCompound("tag").getCompound("CrystalData")); + leftData.readNbt(leftWhat.toTag().getCompound("tag").getCompound("CrystalData")); CrystalData rightData = CrystalData.empty(); - rightData.deserializeNBT(rightWhat.toTag().getCompound("tag").getCompound("CrystalData")); + rightData.readNbt(rightWhat.toTag().getCompound("tag").getCompound("CrystalData")); return switch (sortOrder) { case NAME -> SortingHelper.compareVaultCrystals(leftName, diff --git a/src/main/java/lv/id/bonne/vaulthunters/jewelsorting/vaulthunters/mixin/InvokerGearDataCache.java b/src/main/java/lv/id/bonne/vaulthunters/jewelsorting/vaulthunters/mixin/InvokerGearDataCache.java index 2fdd174..6adfae6 100644 --- a/src/main/java/lv/id/bonne/vaulthunters/jewelsorting/vaulthunters/mixin/InvokerGearDataCache.java +++ b/src/main/java/lv/id/bonne/vaulthunters/jewelsorting/vaulthunters/mixin/InvokerGearDataCache.java @@ -55,6 +55,6 @@ public interface InvokerGearDataCache * This method allows to call private method cacheTag. * @return The cache tag. */ - @Invoker + @Invoker(value = "cacheTag", remap = false) public CompoundTag callCacheTag(); }