summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-09-17 14:52:30 +0100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-09-17 14:53:14 +0100
commitf5957c1831f61726c988c5c4717cd2c51df509cc (patch)
tree00737f535437163ec69332ec94fc63c15a2a31e7 /src/main/java/net
parent0ae6e117618b0a64246a9c60c4ca785a7b221078 (diff)
downloadcraftbukkit-f5957c1831f61726c988c5c4717cd2c51df509cc.tar
craftbukkit-f5957c1831f61726c988c5c4717cd2c51df509cc.tar.gz
craftbukkit-f5957c1831f61726c988c5c4717cd2c51df509cc.tar.lz
craftbukkit-f5957c1831f61726c988c5c4717cd2c51df509cc.tar.xz
craftbukkit-f5957c1831f61726c988c5c4717cd2c51df509cc.zip
Invalid position errors for chunks now display what world they're for
Diffstat (limited to 'src/main/java/net')
-rw-r--r--src/main/java/net/minecraft/server/Chunk.java10
-rw-r--r--src/main/java/net/minecraft/server/ChunkProviderServer.java4
2 files changed, 8 insertions, 6 deletions
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java
index 362e0d36..4982e6d6 100644
--- a/src/main/java/net/minecraft/server/Chunk.java
+++ b/src/main/java/net/minecraft/server/Chunk.java
@@ -7,6 +7,7 @@ import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Random;
+import org.bukkit.Bukkit;
public class Chunk {
@@ -511,10 +512,11 @@ public class Chunk {
int j = MathHelper.floor(entity.locZ / 16.0D);
if (i != this.x || j != this.z) {
- System.out.println("Wrong location! " + entity);
- // Thread.dumpStack(); // CraftBukkit
- // CraftBukkit
- System.out.println("" + entity.locX + "," + entity.locZ + "(" + i + "," + j + ") vs " + this.x + "," + this.z);
+ // CraftBukkit start
+ Bukkit.getLogger().warning("Wrong location for " + entity + " in world '" + world.getWorld().getName() + "'!");
+ // Thread.dumpStack();
+ Bukkit.getLogger().warning("Entity is at " + entity.locX + "," + entity.locZ + " (chunk " + i + "," + j + ") but was stored in chunk " + this.x + "," + this.z);
+ // CraftBukkit end
}
int k = MathHelper.floor(entity.locY / 16.0D);
diff --git a/src/main/java/net/minecraft/server/ChunkProviderServer.java b/src/main/java/net/minecraft/server/ChunkProviderServer.java
index 9d19faa3..364ade8a 100644
--- a/src/main/java/net/minecraft/server/ChunkProviderServer.java
+++ b/src/main/java/net/minecraft/server/ChunkProviderServer.java
@@ -106,8 +106,8 @@ public class ChunkProviderServer implements IChunkProvider {
chunk = chunk == null ? (!this.world.isLoading && !this.forceChunkLoad ? this.emptyChunk : this.getChunkAt(i, j)) : chunk;
if (chunk == this.emptyChunk) return chunk;
if (i != chunk.x || j != chunk.z) {
- MinecraftServer.log.info("Chunk (" + chunk.x + ", " + chunk.z + ") stored at (" + i + ", " + j + ")");
- MinecraftServer.log.info(chunk.getClass().getName());
+ MinecraftServer.log.severe("Chunk (" + chunk.x + ", " + chunk.z + ") stored at (" + i + ", " + j + ") in world '" + world.getWorld().getName() + "'");
+ MinecraftServer.log.severe(chunk.getClass().getName());
Throwable ex = new Throwable();
ex.fillInStackTrace();
ex.printStackTrace();