Finally finished first wave of bugfixing #35

Merged
alisolarflare merged 11 commits from Bugfix into master 2016-12-19 03:19:49 +00:00
Showing only changes of commit 8e805745b5 - Show all commits

View file

@ -31,6 +31,10 @@ public class PlayerProximityLoop extends BukkitRunnable implements Listener{
PlayerProximityLoop.sY = location.getBlockY(); PlayerProximityLoop.sY = location.getBlockY();
PlayerProximityLoop.sZ = location.getBlockZ(); PlayerProximityLoop.sZ = location.getBlockZ();
PlayerProximityLoop.startLocation = location; PlayerProximityLoop.startLocation = location;
if (endLocation == null)
PlayerProximityLoop.endLocation = location;
else
PlayerProximityLoop.endLocation.setWorld(location.getWorld()); PlayerProximityLoop.endLocation.setWorld(location.getWorld());
} }
public static void setEndLocation(Location location){ public static void setEndLocation(Location location){
@ -38,7 +42,10 @@ public class PlayerProximityLoop extends BukkitRunnable implements Listener{
PlayerProximityLoop.eY = location.getBlockY(); PlayerProximityLoop.eY = location.getBlockY();
PlayerProximityLoop.eZ = location.getBlockZ(); PlayerProximityLoop.eZ = location.getBlockZ();
PlayerProximityLoop.startLocation.setWorld(location.getWorld()); PlayerProximityLoop.startLocation.setWorld(location.getWorld());
if (endLocation == null)
PlayerProximityLoop.endLocation = location; PlayerProximityLoop.endLocation = location;
else
PlayerProximityLoop.endLocation.setWorld(location.getWorld());
} }
@Override @Override