From 1bcf7f9d52a60211320084c55dcd4c30d71fc639 Mon Sep 17 00:00:00 2001 From: yueh Date: Thu, 5 Mar 2015 14:52:00 +0100 Subject: [PATCH] Some further improvements to the security audit --- src/api/java/appeng/api/util/DimensionalCoord.java | 2 +- src/api/java/appeng/api/util/WorldCoord.java | 2 +- src/main/java/appeng/me/GridConnection.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/java/appeng/api/util/DimensionalCoord.java b/src/api/java/appeng/api/util/DimensionalCoord.java index 26c3b189..ac9a39d5 100644 --- a/src/api/java/appeng/api/util/DimensionalCoord.java +++ b/src/api/java/appeng/api/util/DimensionalCoord.java @@ -84,7 +84,7 @@ public class DimensionalCoord extends WorldCoord @Override public String toString() { - return this.dimId + "," + super.toString(); + return "dimension=" + this.dimId + ", " + super.toString(); } public World getWorld() diff --git a/src/api/java/appeng/api/util/WorldCoord.java b/src/api/java/appeng/api/util/WorldCoord.java index 6ca576fb..8b117f0e 100644 --- a/src/api/java/appeng/api/util/WorldCoord.java +++ b/src/api/java/appeng/api/util/WorldCoord.java @@ -148,7 +148,7 @@ public class WorldCoord @Override public String toString() { - return "" + this.x + "," + this.y + "," + this.z; + return "x=" + this.x + ", y=" + this.y + ", z=" + this.z; } @Override diff --git a/src/main/java/appeng/me/GridConnection.java b/src/main/java/appeng/me/GridConnection.java index 898ea710..61cea7a6 100644 --- a/src/main/java/appeng/me/GridConnection.java +++ b/src/main/java/appeng/me/GridConnection.java @@ -66,8 +66,8 @@ public class GridConnection implements IGridConnection, IPathItem final DimensionalCoord aCoordinates = a.getGridBlock().getLocation(); final DimensionalCoord bCoordinates = b.getGridBlock().getLocation(); - AELog.info( "Security audit 1 failed at [x=%d, y=%d, z=%d] belonging to player [id=%d]", aCoordinates.x, aCoordinates.y, aCoordinates.z, a.playerID ); - AELog.info( "Security audit 2 failed at [x=%d, y=%d, z=%d] belonging to player [id=%d]", bCoordinates.x, bCoordinates.y, bCoordinates.z, b.playerID ); + AELog.info( "Security audit 1 failed at [%s] belonging to player [id=%d]", aCoordinates.toString(), a.playerID ); + AELog.info( "Security audit 2 failed at [%s] belonging to player [id=%d]", bCoordinates.toString(), b.playerID ); } throw new FailedConnection();