From 5049dec5a763bda5dc702cd1b9ff6b34ae053b35 Mon Sep 17 00:00:00 2001 From: Aspurgus <75339765+Aspurgus@users.noreply.github.com> Date: Thu, 13 Jun 2024 20:33:47 -0400 Subject: [PATCH 1/2] Anchorite's Flight forge fix --- .../java/at/petrak/hexcasting/forge/xplat/ForgeXplatImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Forge/src/main/java/at/petrak/hexcasting/forge/xplat/ForgeXplatImpl.java b/Forge/src/main/java/at/petrak/hexcasting/forge/xplat/ForgeXplatImpl.java index 91070dd417..9d9188599d 100644 --- a/Forge/src/main/java/at/petrak/hexcasting/forge/xplat/ForgeXplatImpl.java +++ b/Forge/src/main/java/at/petrak/hexcasting/forge/xplat/ForgeXplatImpl.java @@ -243,7 +243,7 @@ public FlightAbility getFlight(ServerPlayer player) { boolean allowed = tag.getBoolean(TAG_FLIGHT_ALLOWED); if (allowed) { var timeLeft = tag.getInt(TAG_FLIGHT_TIME); - var origin = HexUtils.vecFromNBT(tag.getLongArray(TAG_FLIGHT_ORIGIN)); + var origin = HexUtils.vecFromNBT(tag.getCompound(TAG_FLIGHT_ORIGIN)); var radius = tag.getDouble(TAG_FLIGHT_RADIUS); var dimension = ResourceKey.create(Registries.DIMENSION, new ResourceLocation(tag.getString(TAG_FLIGHT_DIMENSION))); From 3860d5be89de0684bb1f8afcd58700f03c58a7e9 Mon Sep 17 00:00:00 2001 From: Aspurgus <75339765+Aspurgus@users.noreply.github.com> Date: Fri, 14 Jun 2024 16:56:35 -0400 Subject: [PATCH 2/2] Fabric Anchorite's Fix --- .../src/main/java/at/petrak/hexcasting/fabric/cc/CCFlight.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fabric/src/main/java/at/petrak/hexcasting/fabric/cc/CCFlight.java b/Fabric/src/main/java/at/petrak/hexcasting/fabric/cc/CCFlight.java index 3cee0269b5..e7747fac3f 100644 --- a/Fabric/src/main/java/at/petrak/hexcasting/fabric/cc/CCFlight.java +++ b/Fabric/src/main/java/at/petrak/hexcasting/fabric/cc/CCFlight.java @@ -45,7 +45,7 @@ public void readFromNbt(CompoundTag tag) { var timeLeft = tag.getInt(TAG_TIME_LEFT); var dim = ResourceKey.create(Registries.DIMENSION, new ResourceLocation(tag.getString(TAG_DIMENSION))); - var origin = HexUtils.vecFromNBT(tag.getLongArray(TAG_ORIGIN)); + var origin = HexUtils.vecFromNBT(tag.getCompound(TAG_ORIGIN)); var radius = tag.getDouble(TAG_RADIUS); this.flight = new FlightAbility(timeLeft, dim, origin, radius); }