Minor code optimizations.

This commit is contained in:
MobiusDev
2015-07-13 13:55:34 +00:00
parent 97ba8260fa
commit 53b32c4b98
6 changed files with 6 additions and 7 deletions

View File

@ -14504,7 +14504,7 @@ public final class L2PcInstance extends L2Playable
_log.warning("Premium System: Could not restore premium system data for " + account + "." + e);
e.printStackTrace();
}
if (success == false)
if (!success)
{
PremiumManager.getInstance().removePremiumStatus(player.getAccountName());
player.setPremiumStatus(false);

View File

@ -2150,8 +2150,7 @@ public final class Formulas
}
/**
* Calculates karma gain upon playable kill.</br>
* Updated to High Five on 10.09.2014 by Zealar tested in retail.
* Calculates karma gain upon playable kill.</br> Updated to High Five on 10.09.2014 by Zealar tested in retail.
* @param pkCount
* @param isSummon
* @return karma points that will be added to the player.