summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvilSeph <evilseph@unaligned.org>2011-04-19 00:49:59 -0400
committerEvilSeph <evilseph@unaligned.org>2011-04-19 00:49:59 -0400
commit5e154b2235a28a9f8560d2dcccf839b8ae86f8ac (patch)
treed823ff99a9256b1071320e37b037185a150eca8d /src
parent8aa376fc2708db8cb9c21df325174d74b9c7bdb9 (diff)
downloadcraftbukkit-5e154b2235a28a9f8560d2dcccf839b8ae86f8ac.tar
craftbukkit-5e154b2235a28a9f8560d2dcccf839b8ae86f8ac.tar.gz
craftbukkit-5e154b2235a28a9f8560d2dcccf839b8ae86f8ac.tar.lz
craftbukkit-5e154b2235a28a9f8560d2dcccf839b8ae86f8ac.tar.xz
craftbukkit-5e154b2235a28a9f8560d2dcccf839b8ae86f8ac.zip
Fixed name display in log messages for invalid yaw/pitch check.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/Entity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
index 22f344fc..84df2677 100644
--- a/src/main/java/net/minecraft/server/Entity.java
+++ b/src/main/java/net/minecraft/server/Entity.java
@@ -148,7 +148,7 @@ public abstract class Entity {
// Craftbukkit start
if ((f == Float.POSITIVE_INFINITY) || (f == Float.NEGATIVE_INFINITY) || (Float.isNaN(f))) {
if (this instanceof EntityPlayer) {
- System.err.println(getBukkitEntity() + " was caught trying to crash the server with an invalid yaw");
+ System.err.println(((CraftPlayer)this.getBukkitEntity()).getName() + " was caught trying to crash the server with an invalid yaw");
((CraftPlayer)this.getBukkitEntity()).kickPlayer("Nope");
}
f = 0;
@@ -156,7 +156,7 @@ public abstract class Entity {
if ((f1 == Float.POSITIVE_INFINITY) || (f1 == Float.NEGATIVE_INFINITY) || (Float.isNaN(f1))) {
if (this instanceof EntityPlayer) {
- System.err.println(getBukkitEntity() + " was caught trying to crash the server with an invalid pitch");
+ System.err.println(((CraftPlayer)this.getBukkitEntity()).getName() + " was caught trying to crash the server with an invalid pitch");
((CraftPlayer)this.getBukkitEntity()).kickPlayer("Nope");
}
f1 = 0;