Fixed character faction reset if accidently disabling the system.
This commit is contained in:
@@ -6939,17 +6939,14 @@ public final class L2PcInstance extends L2Playable
|
|||||||
player.setNewbie(rset.getInt("newbie"));
|
player.setNewbie(rset.getInt("newbie"));
|
||||||
player.setNoble(rset.getInt("nobless") == 1);
|
player.setNoble(rset.getInt("nobless") == 1);
|
||||||
|
|
||||||
if (Config.FACTION_SYSTEM_ENABLED)
|
final int factionId = rset.getInt("faction");
|
||||||
|
if (factionId == 1)
|
||||||
{
|
{
|
||||||
final int factionId = rset.getInt("faction");
|
player.setGood();
|
||||||
if (factionId == 1)
|
}
|
||||||
{
|
if (factionId == 2)
|
||||||
player.setGood();
|
{
|
||||||
}
|
player.setEvil();
|
||||||
if (factionId == 2)
|
|
||||||
{
|
|
||||||
player.setEvil();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
player.setClanJoinExpiryTime(rset.getLong("clan_join_expiry_time"));
|
player.setClanJoinExpiryTime(rset.getLong("clan_join_expiry_time"));
|
||||||
|
Reference in New Issue
Block a user