Change the way region setting works.

The region now contains two location references per region point for
the bounding boxes where p1, p2, l1 and l2 remain the same (min/max),
but also additional locations for the player's actual location, such
that e.g. moving back and re-setting a point has the more intuitive
behavior of expanding regardless of the optimized points.

This also (hopefully) finally fixes the previous issues with the setup
process *knock on wood*.
This commit is contained in:
garbagemule
2013-07-09 04:37:19 +02:00
parent 8027fa3d5f
commit bd095dafd5
8 changed files with 203 additions and 111 deletions
@@ -188,6 +188,7 @@ public class ArenaImpl implements Arena
@Override
public void setWorld(World world) {
this.world = world;
if (region != null) region.refreshWorld();
}
@Override