mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-27 17:57:22 -04:00
Fixed minor error with defendersList on reboot.
Fixes: java.lang.NullPointerException at resources.objects.tangible.TangibleObject.getDefendersList(TangibleObject.java:328) at services.gcw.FactionService.calculatePvpStatus(FactionService.java:318) at resources.objects.creature.CreatureObject.sendBaselines(CreatureObject.java:1475) at engine.resources.objects.SWGObject.makeAware(SWGObject.java:532) at services.SimulationService.add(SimulationService.java:251) at services.SimulationService.handleZoneIn(SimulationService.java:1187) at services.object.ObjectService$7.handlePacket(ObjectService.java:1169) at engine.resources.service.NetworkDispatch$1.run(NetworkDispatch.java:216) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
This commit is contained in:
@@ -110,7 +110,7 @@ public class CreatureObject extends TangibleObject implements IPersistent {
|
||||
}
|
||||
|
||||
public void initAfterDBLoad() {
|
||||
super.init();
|
||||
super.initAfterDBLoad();
|
||||
System.out.println("Name: " + getCustomName());
|
||||
System.out.println(" Cash Credits: " + getCashCredits());
|
||||
System.out.println(" Bank Credits: " + getBankCredits());
|
||||
@@ -182,8 +182,8 @@ public class CreatureObject extends TangibleObject implements IPersistent {
|
||||
baseline.put("moodId", (byte) 0);
|
||||
baseline.put("performanceCounter", 0);
|
||||
baseline.put("performanceId", 0);
|
||||
baseline.put("attributes", new SWGList<Integer>(this, 6, 21, false));
|
||||
baseline.put("maxAttributes", new SWGList<Integer>(this, 6, 22, false));
|
||||
baseline.put("attribs", new SWGList<Integer>(this, 6, 21, false));
|
||||
baseline.put("maxAttribs", new SWGList<Integer>(this, 6, 22, false));
|
||||
baseline.put("equipmentList", new SWGList<Equipment>(this, 6, 23, false));
|
||||
baseline.put("appearance", "");
|
||||
baseline.put("visible", true);
|
||||
@@ -823,7 +823,7 @@ public class CreatureObject extends TangibleObject implements IPersistent {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public SWGList<Integer> getAttribs() {
|
||||
return (SWGList<Integer>) getBaseline(6).get("attributes");
|
||||
return (SWGList<Integer>) getBaseline(6).get("attribs");
|
||||
}
|
||||
|
||||
public void resetAttribs() {
|
||||
@@ -881,7 +881,7 @@ public class CreatureObject extends TangibleObject implements IPersistent {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public SWGList<Integer> getMaxAttribs() {
|
||||
return (SWGList<Integer>) getBaseline(6).get("maxAttributes");
|
||||
return (SWGList<Integer>) getBaseline(6).get("maxAttribs");
|
||||
}
|
||||
|
||||
public int getMaxHealth() {
|
||||
|
||||
Reference in New Issue
Block a user