From 4a73bce5862f5d7a839c7c669aadc54590ff01e7 Mon Sep 17 00:00:00 2001 From: Jonathan Williams Date: Sat, 14 Nov 2015 00:36:34 -0600 Subject: [PATCH] Added gadget and projectileUser logging. --- .../src/mineplex/core/gadget/types/Gadget.java | 2 ++ .../src/mineplex/core/projectile/ProjectileUser.java | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/gadget/types/Gadget.java b/Plugins/Mineplex.Core/src/mineplex/core/gadget/types/Gadget.java index f2d6f79af..063495f54 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/gadget/types/Gadget.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/gadget/types/Gadget.java @@ -74,6 +74,8 @@ public abstract class Gadget extends SalesPackageBase implements Listener return; } + System.out.println(player.getName() + " has activated " + Name); + EnableCustom(player); Manager.setActive(player, this); } diff --git a/Plugins/Mineplex.Core/src/mineplex/core/projectile/ProjectileUser.java b/Plugins/Mineplex.Core/src/mineplex/core/projectile/ProjectileUser.java index 1c64c938c..a7e14ef66 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/projectile/ProjectileUser.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/projectile/ProjectileUser.java @@ -268,6 +268,13 @@ public class ProjectileUser nmsEntity.locY -= nmsEntity.motY / 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); return true; }