Skip to content

aion-emu-servers

@MATTYOneInc MATTYOneInc tagged this 27 Mar 10:59
1. Added a call to the superclass constructor with the name in the GeoMap constructor. This is necessary to correctly initialize the node’s name.
2. Improved getDoorName() logic:
- 2.1. Used more descriptive variable names (doorEntry).
- 2.2. Improved the checkDistance() method for finding doors.
- 2.3. Added a check for doorKey != null to avoid NullPointerException.
- 2.4. Used local methods to improve readability.
3. Improved canPassWalker() and canPass() logic: Used the calculateDistance() method to calculate the distance between points.
4. Improved getZ() logic (overloads): Removed unnecessary method calls, which improved performance.
5. Improved getClosestCollision() logic: Corrected an error in the distance calculation; used pos.distance(end) to correctly calculate the limit.
6. Improved getCollisions() logic:
- 6.1 Changed the dir calculation to avoid direction issues.
- 6.2 Used pos.distance(end) to correctly calculate the limit.
7. Improved calculateTerrainCollision() logic: Removed unnecessary method calls, which improved performance.
8. Improved setTerrainCutouts() logic: Added a null check for the input parameter cutoutData.
9. Improved terraionCollision() logic:
- 9.1. Added boundary checks for the terrainData array.
- 9.2. Used local variables to improve readability.
10. Improved canSee() logic:
- 10.1. The distance is converted to an int.
- 10.2. Used an int variable s in the loop, since it is used for iterating over integer values.
- 10.3. Changed the formula for calculating tempX and tempY to correct a potential calculation error.
11. Improved updateModelBound() logic: Fixed an issue related to removing empty nodes.
Assets 2
Loading