Rename .getLastLocation --> .getCurrentChunk

This commit is contained in:
Olof Larsson
2013-04-11 11:27:04 +02:00
parent a34e2be362
commit 75a5764b4f
7 changed files with 26 additions and 26 deletions

View File

@ -36,12 +36,12 @@ public class LWCFeatures
return ConfServer.lwcIntegration && lwc != null;
}
public static void clearOtherChests(PS ps, Faction faction)
public static void clearOtherChests(PS chunkPs, Faction faction)
{
Chunk chunk = null;
try
{
chunk = ps.asBukkitChunk(true);
chunk = chunkPs.asBukkitChunk(true);
}
catch (Exception e)
{
@ -69,12 +69,12 @@ public class LWCFeatures
}
}
public static void clearAllChests(PS ps)
public static void clearAllChests(PS chunkPs)
{
Chunk chunk = null;
try
{
chunk = ps.asBukkitChunk(true);
chunk = chunkPs.asBukkitChunk(true);
}
catch (Exception e)
{

View File

@ -258,7 +258,7 @@ public class SpoutFeatures
{
mainListener.updateTerritoryDisplay(player, false);
}
else if (player.getLastStoodAt().equals(chunk))
else if (player.getCurrentChunk().equals(chunk))
{
mainListener.updateTerritoryDisplay(player, true);
}
@ -283,7 +283,7 @@ public class SpoutFeatures
for (FPlayer player : players)
{
if (chunk == null || player.getLastStoodAt().equals(chunk))
if (chunk == null || player.getCurrentChunk().equals(chunk))
mainListener.updateAccessInfo(player);
}
}

View File

@ -72,7 +72,7 @@ public class SpoutMainListener implements Listener
if (!sPlayer.isSpoutCraftEnabled() || (ConfServer.spoutTerritoryDisplaySize <= 0 && ! ConfServer.spoutTerritoryNoticeShow))
return false;
PS here = player.getLastStoodAt();
PS here = player.getCurrentChunk();
this.doAccessInfo(player, sPlayer, here);
@ -89,7 +89,7 @@ public class SpoutMainListener implements Listener
private void doLabels(FPlayer player, SpoutPlayer sPlayer, boolean notify)
{
PS here = player.getLastStoodAt();
PS here = player.getCurrentChunk();
Faction factionHere = BoardColl.get().getFactionAt(here);
String tag = factionHere.getColorTo(player).toString() + factionHere.getTag();