forked from MagicBane/Server
More useful error information.
This commit is contained in:
@@ -228,14 +228,13 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
else
|
else
|
||||||
this.contract = DbManager.ContractQueries.GET_CONTRACT(contractID);
|
this.contract = DbManager.ContractQueries.GET_CONTRACT(contractID);
|
||||||
|
|
||||||
if (this.contract != null) if (NPC.ISGuardCaptain(contract.getContractID())) {
|
if (this.contract != null && NPC.ISGuardCaptain(contract.getContractID())) {
|
||||||
this.spawnTime = 60 * 15;
|
this.spawnTime = 60 * 15;
|
||||||
this.isPlayerGuard = true;
|
this.isPlayerGuard = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int guildID = rs.getInt("mob_guildUID");
|
int guildID = rs.getInt("mob_guildUID");
|
||||||
|
|
||||||
|
|
||||||
if (this.building != null)
|
if (this.building != null)
|
||||||
this.guild = this.building.getGuild();
|
this.guild = this.building.getGuild();
|
||||||
else
|
else
|
||||||
@@ -283,7 +282,7 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
this.BehaviourType = MobBehaviourType.valueOf(rs.getString("fsm"));
|
this.BehaviourType = MobBehaviourType.valueOf(rs.getString("fsm"));
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Logger.error(currentID + "");
|
Logger.error(e + " " + this.dbID );
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user