Commit Graph

6 Commits

Author SHA1 Message Date
Dawson bbb7ade1c9 Added todo to fix teleport lag on emulator 2023-03-14 13:04:43 -04:00
Dawson ed2410757d Bug fixes and performance improvements
- Fixed NullPointerExceptions on the teleport functions of the Phase check. This is caused by a concurrency issue where I didn't set the Location object as a final constant and it would get updated to null by another thread.
- Added a Cache on the XMaterial#matchXMaterial(Material) method so it isn't running the logic repeatedly. This improved performance.
- Instead of using an object as a key in BlockUpdateHandler, we use an Integer array. This should theoretically improve performance by reducing the amount of hashing required. However, we shall see how this works in practice.
- Reduced the amounts of instructions needed to run in the getCollidingBlocks() method for the Emulator in APlayer by removing the use of a Stream and just replacing it with a for() loop.
2023-03-14 13:03:50 -04:00
Dawson 572716e76e Update JoinListener.java 2023-03-14 10:52:55 -04:00
Dawson dc089d022e Improving shit 2023-03-07 14:32:38 -05:00
Dawson 11b4a62924 Imrpoved shit 2023-03-06 14:37:21 -05:00
Dawson 591f782efd Restructuring Project 2023-03-06 09:32:22 -05:00