[ANGUISH-ASCEND]NPC drop table bug
I've noticed a few npcs drops wont load in the drop table searcher e.g. Vetion.
[Only registered and activated users can see links. Click Here To Register...]
Console gives null pointer exception:
[Only registered and activated users can see links. Click Here To Register...]
Any ideas welcome. Ty.
Edit: Figured it out. If anyone is wondering the problem was in the isAggressive method in NPCHandler.java:
Replace:
Code:
public boolean isAggressive(int i, boolean searching) {
if (!searching) {
if (Boundary.isIn(npcs[i], Boundary.GODWARS_BOSSROOMS)
|| Boundary.isIn(npcs[i], Boundary.CORPOREAL_BEAST_LAIR)) {
return true;
}
}
if (Boundary.isIn(npcs[i], Boundary.WILDERNESS_UNDERGROUND)) {
return true;
}
if (npcs[i].inRevs()) {
return true;
}
if(Boundary.isIn(npcs[i], Boundary.REV_CAVE)) {
return true;
}
with:
Code:
public boolean isAggressive(int i, boolean searching) {
if (!searching) {
if (Boundary.isIn(npcs[i], Boundary.GODWARS_BOSSROOMS)
|| Boundary.isIn(npcs[i], Boundary.CORPOREAL_BEAST_LAIR)) {
return true;
}
if (Boundary.isIn(npcs[i], Boundary.WILDERNESS_UNDERGROUND)) {
return true;
}
if (npcs[i].inRevs()) {
return true;
}
if(Boundary.isIn(npcs[i], Boundary.REV_CAVE)) {
return true;
}
}