Skip to content

Commit

Permalink
chore: Adjust for engine changes in MovingBlocks/Terasology#4029
Browse files Browse the repository at this point in the history
  • Loading branch information
Cervator committed Jul 7, 2020
1 parent 29efd05 commit b51d166
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static Region3i getChunkRegionAbove(Vector3f location) {
Vector3i charecterPos = new Vector3i(location);
Vector3i chunkAboveCharacter = ChunkMath.calcChunkPos(charecterPos);
chunkAboveCharacter.addY(1);
Vector3i chunkRelativePos = ChunkMath.calcBlockPos(charecterPos);
Vector3i chunkRelativePos = ChunkMath.calcRelativeBlockPos(charecterPos);
Vector3i characterChunkOriginPos = new Vector3i(charecterPos);
characterChunkOriginPos.sub(chunkRelativePos);

Expand Down

0 comments on commit b51d166

Please sign in to comment.