mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Added xp gain on killing NPCs, fixed some bugs, added 2 new config options
This commit is contained in:
@@ -981,7 +981,7 @@ public class SimulationService implements INetworkDispatch {
|
||||
Point3D origin = new Point3D(position1.x, position1.y + 1, position1.z);
|
||||
Point3D end = new Point3D(position2.x, position2.y + 1, position2.z);
|
||||
|
||||
Vector3D direction = new Vector3D(end.x - origin.x, end.y - origin.y, end.z - origin.z).normalize();
|
||||
Vector3D direction = new Vector3D(end.x - origin.x, end.y - origin.y, end.z - origin.z);
|
||||
|
||||
if (direction.getNorm() != 0) {
|
||||
direction.normalize();
|
||||
|
||||
Reference in New Issue
Block a user