Code improvements.

This commit is contained in:
MobiusDev
2016-04-24 16:30:15 +00:00
parent 8bd51aba1c
commit 2dd14bef9b
860 changed files with 8865 additions and 17041 deletions

View File

@@ -88,24 +88,18 @@ public class L2Mentee
public int getClassId()
{
if (isOnline())
if (isOnline() && (getPlayerInstance().getClassId().getId() != _classId))
{
if (getPlayerInstance().getClassId().getId() != _classId)
{
_classId = getPlayerInstance().getClassId().getId();
}
_classId = getPlayerInstance().getClassId().getId();
}
return _classId;
}
public int getLevel()
{
if (isOnline())
if (isOnline() && (getPlayerInstance().getLevel() != _currentLevel))
{
if (getPlayerInstance().getLevel() != _currentLevel)
{
_currentLevel = getPlayerInstance().getLevel();
}
_currentLevel = getPlayerInstance().getLevel();
}
return _currentLevel;
}