Work on the tests and change up some performance issues.
1. In the player move event we looped through the jailed players more than once which really is an issue when you have several hundred jailed and since the move event is called several times a second, that was a huge performance hit. 2. Don't save the prisoner data as soon as they are jailed, we take care of that else where with the shutting down and counting down time.
This commit is contained in:
@ -134,8 +134,8 @@ public class JailCreationSteps {
|
||||
|
||||
jail.setMinPoint(cp.getCornerOne());
|
||||
jail.setMaxPoint(cp.getCornerTwo());
|
||||
jail.setTeleportIn(cp.getTeleportInSL());
|
||||
jail.setTeleportFree(cp.getTeleportFreeSL());
|
||||
jail.setTeleportIn(cp.getTeleportInSL().getLocation());
|
||||
jail.setTeleportFree(cp.getTeleportFreeSL().getLocation());
|
||||
|
||||
jm.addJail(jail, true);
|
||||
|
||||
|
Reference in New Issue
Block a user