Added gadget and projectileUser logging.

This commit is contained in:
Jonathan Williams 2015-11-14 00:36:34 -06:00
parent 25f299b490
commit 4a73bce586
2 changed files with 9 additions and 0 deletions

View File

@ -74,6 +74,8 @@ public abstract class Gadget extends SalesPackageBase implements Listener
return; return;
} }
System.out.println(player.getName() + " has activated " + Name);
EnableCustom(player); EnableCustom(player);
Manager.setActive(player, this); Manager.setActive(player, this);
} }

View File

@ -268,6 +268,13 @@ public class ProjectileUser
nmsEntity.locY -= nmsEntity.motY / f2 * 0.0500000007450581D; nmsEntity.locY -= nmsEntity.motY / f2 * 0.0500000007450581D;
nmsEntity.locZ -= nmsEntity.motZ / f2 * 0.0500000007450581D; nmsEntity.locZ -= nmsEntity.motZ / f2 * 0.0500000007450581D;
if (nmsEntity.locX == Double.NaN)
System.out.println(_thrown + " has made " + nmsEntity + "'s locX NaN.");
if (nmsEntity.locY == Double.NaN)
System.out.println(_thrown + " has made " + nmsEntity + "'s locY NaN.");
if (nmsEntity.locZ == Double.NaN)
System.out.println(_thrown + " has made " + nmsEntity + "'s locZ NaN.");
_callback.Collide(null, block, this); _callback.Collide(null, block, this);
return true; return true;
} }