Code improvements.
This commit is contained in:
@@ -33,11 +33,7 @@ public class Mount implements IUserCommandHandler
|
||||
@Override
|
||||
public synchronized boolean useUserCommand(int id, L2PcInstance activeChar)
|
||||
{
|
||||
if (id != COMMAND_IDS[0])
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return activeChar.mountPlayer(activeChar.getPet());
|
||||
return (id == COMMAND_IDS[0]) && activeChar.mountPlayer(activeChar.getPet());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user