Added gadget and projectileUser logging.
This commit is contained in:
parent
25f299b490
commit
4a73bce586
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user