Direct use of private constants instead of getters.

This commit is contained in:
MobiusDev
2018-06-24 15:33:19 +00:00
parent 6eee61d0d8
commit d265813c40
989 changed files with 12563 additions and 12892 deletions

View File

@@ -73,9 +73,9 @@ public final class HellboundEngine extends AbstractNpcAI
if (event.equals(UPDATE_EVENT))
{
int level = getLevel();
if ((level > 0) && (level == getCachedLevel()))
if ((level > 0) && (level == _cachedLevel))
{
if ((getTrust() == getMaxTrust()) && (level != 4)) // Only exclusion is kill of Derek.
if ((getTrust() == _maxTrust) && (level != 4)) // Only exclusion is kill of Derek.
{
level++;
setLevel(level);

View File

@@ -542,7 +542,7 @@ public final class Minigame extends AbstractNpcAI
_listener = null;
}
getManager().setTarget(null);
_manager.setTarget(null);
setParticipant(null);
setStarted(false);
setAttemptNumber(1);

View File

@@ -121,7 +121,7 @@ public final class Fishing extends AbstractEffect
return;
}
if (player.isInCraftMode() || player.isInStoreMode())
if (player.isCrafting() || player.isInStoreMode())
{
player.sendPacket(SystemMessageId.YOU_CANNOT_FISH_WHILE_USING_A_RECIPE_BOOK_PRIVATE_MANUFACTURE_OR_PRIVATE_STORE);
return;

View File

@@ -40,7 +40,7 @@ public class Recipes implements IItemHandler
}
final L2PcInstance activeChar = playable.getActingPlayer();
if (activeChar.isInCraftMode())
if (activeChar.isCrafting())
{
activeChar.sendPacket(SystemMessageId.YOU_MAY_NOT_ALTER_YOUR_RECIPE_BOOK_WHILE_ENGAGED_IN_MANUFACTURING);
return false;