Fixes for new Eclipse warnings.

This commit is contained in:
MobiusDev
2017-09-27 01:59:41 +00:00
parent 3cb7b3f70e
commit bb9e1f2827
34 changed files with 68 additions and 56 deletions

View File

@@ -1587,7 +1587,7 @@ public class NpcBuffer extends Quest
for (L2CubicInstance cubic : player.getCubics().values())
{
cubic.stopAction();
player.getCubics().remove(cubic);
player.getCubics().remove(cubic.getId());
}
}
}
@@ -1852,7 +1852,7 @@ public class NpcBuffer extends Quest
for (L2CubicInstance cubic : player.getCubics().values())
{
cubic.stopAction();
player.getCubics().remove(cubic);
player.getCubics().remove(cubic.getId());
}
}
npc.broadcastPacket(new MagicSkillUse(npc, player, Integer.parseInt(eventParam1), 1, 1000, 0));
@@ -1873,7 +1873,7 @@ public class NpcBuffer extends Quest
for (L2CubicInstance cubic : player.getCubics().values())
{
cubic.stopAction();
player.getCubics().remove(cubic);
player.getCubics().remove(cubic.getId());
}
}
npc.broadcastPacket(new MagicSkillUse(npc, player, Integer.parseInt(eventParam1), 1, 1000, 0));

View File

@@ -1084,7 +1084,7 @@ public class Duel
if (cond != null)
{
cond.teleportBack();
_playerConditions.remove(cond);
_playerConditions.remove(player.getObjectId());
}
player.setIsInDuel(0);
}

View File

@@ -603,7 +603,7 @@ public final class GameServerTable implements IXmlReader
{
for (GameServerAddress a : _addrs)
{
if (a.equals(addr))
if (a.getAddress().equals(addr.getAddress()))
{
return a.getServerAddress();
}