Finally finished first wave of bugfixing #35
1 changed files with 13 additions and 6 deletions
|
@ -31,6 +31,10 @@ public class PlayerProximityLoop extends BukkitRunnable implements Listener{
|
|||
PlayerProximityLoop.sY = location.getBlockY();
|
||||
PlayerProximityLoop.sZ = location.getBlockZ();
|
||||
PlayerProximityLoop.startLocation = location;
|
||||
|
||||
if (endLocation == null)
|
||||
PlayerProximityLoop.endLocation = location;
|
||||
else
|
||||
PlayerProximityLoop.endLocation.setWorld(location.getWorld());
|
||||
}
|
||||
public static void setEndLocation(Location location){
|
||||
|
@ -38,7 +42,10 @@ public class PlayerProximityLoop extends BukkitRunnable implements Listener{
|
|||
PlayerProximityLoop.eY = location.getBlockY();
|
||||
PlayerProximityLoop.eZ = location.getBlockZ();
|
||||
PlayerProximityLoop.startLocation.setWorld(location.getWorld());
|
||||
if (endLocation == null)
|
||||
PlayerProximityLoop.endLocation = location;
|
||||
else
|
||||
PlayerProximityLoop.endLocation.setWorld(location.getWorld());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue