From b796502b4a8c254d5ce61479375c57109508b8fb Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 28 May 2020 00:54:19 +0200 Subject: [PATCH] Improved debug support for GlobalPosition objects --- src/main/java/cr0s/warpdrive/data/GlobalPosition.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/cr0s/warpdrive/data/GlobalPosition.java b/src/main/java/cr0s/warpdrive/data/GlobalPosition.java index ec727cbf..5f1b2fda 100644 --- a/src/main/java/cr0s/warpdrive/data/GlobalPosition.java +++ b/src/main/java/cr0s/warpdrive/data/GlobalPosition.java @@ -154,4 +154,10 @@ public class GlobalPosition { public int hashCode() { return dimensionId << 24 + (x >> 10) << 12 + y << 10 + (z >> 10); } + + @Override + public String toString() { + return String.format("GlobalPosition{DIM%d (%d %d %d)}", + dimensionId, x, y, z ); + } } \ No newline at end of file