Rename .getLastLocation --> .getCurrentChunk
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user