Skip to content

Commit

Permalink
Merge pull request #57 from Ender-Cube/center-spawning
Browse files Browse the repository at this point in the history
Fix block centering... Oops
  • Loading branch information
zax71 authored Jun 12, 2024
2 parents 73310b1 + 15f11fd commit c4b45df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
import java.nio.file.Paths;
import java.util.ArrayList;

import static net.endercube.common.utils.CoordinateUtils.posFromBlockpos;

/**
* This is the entrypoint for Parkour
*/
Expand Down Expand Up @@ -154,7 +152,7 @@ public static void sendToCheckpoint(EndercubePlayer player) {
player.teleport(currentInstance.getTag(Tag.Transient("spawnPos")));
player.setTag(Tag.Long("parkour_startTime"), System.currentTimeMillis()); // Reset timer
} else {
player.teleport(posFromBlockpos(checkpoints[currentCheckpoint]));
player.teleport(checkpoints[currentCheckpoint].add(0.5, 0, 0.5)); // Teleport to the center of the block
}
}

Expand Down

0 comments on commit c4b45df

Please sign in to comment.