Skip to content

Commit

Permalink
Tiny Cleanup of FTB Chunks Mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
TechTastic committed Dec 27, 2024
1 parent c41d894 commit 98694ef
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,11 @@ public abstract class MixinClaimedChunkManager {
return pos;
}

final Vector3d vec = ship.getShipToWorld().transformPosition(new Vector3d(pos.getX(), pos.getY(), pos.getZ()));
final Vector3d vec = ship.getShipToWorld().transformPosition(VectorConversionsMCKt.toJOMLD(pos));
final BlockPos newPos = new BlockPos(VectorConversionsMCKt.toMinecraft(vec));

if (
(newPos.getY() > level.getMaxBuildHeight() || newPos.getY() < level.getMinBuildHeight()) &&
!VSGameConfig.SERVER.getFTBChunks().getShipsProtectionOutOfBuildHeight()
) {
if ((newPos.getY() > level.getMaxBuildHeight() || newPos.getY() < level.getMinBuildHeight()) &&
!VSGameConfig.SERVER.getFTBChunks().getShipsProtectionOutOfBuildHeight()) {
return pos;
}

Expand Down

0 comments on commit 98694ef

Please sign in to comment.