Skip to content

Commit

Permalink
Anchorite's Flight forge fix (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object authored Jun 14, 2024
2 parents 7e94b76 + d51f19c commit d89fd91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit d89fd91

Please sign in to comment.