Skip to content

Commit

Permalink
fix bug where checking for teleporter at a location accidentlaly modi…
Browse files Browse the repository at this point in the history
…fies the input location value
  • Loading branch information
BLuFeNiX committed Jul 17, 2021
1 parent 9cb90c4 commit 23c4f3b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class TeleUtils {
private static Vector[] nearbyVectors = {NONE, NORTH, EAST, SOUTH, SOUTH, WEST, WEST, NORTH, NORTH};

public static Teleporter getTeleporterFromLocation(Location loc) {
loc = loc.clone();
int rotation;
if ((rotation = BlockUtil.isTeleporter(loc)) >= 0) {
return new Teleporter(loc, rotation);
Expand Down

0 comments on commit 23c4f3b

Please sign in to comment.