Skip to content

Commit

Permalink
Fix wing position on world reload (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
Endalion authored Aug 22, 2024
1 parent ad53ee3 commit 3696741
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private boolean includeShipsInParticleDistanceCheck(
for (int z = 0; z < 16; z++) {
final BlockState blockState = chunkSection.getBlockState(x, y, z);
final int posX = (chunkX << 4) + x;
final int posY = worldChunk.getMinBuildHeight() + y;
final int posY = worldChunk.getMinBuildHeight() + (sectionY << 4) + y;
final int posZ = (chunkZ << 4) + z;
if (blockState.getBlock() instanceof WingBlock) {
mutableBlockPos.set(posX, posY, posZ);
Expand Down

0 comments on commit 3696741

Please sign in to comment.