guild lookup no lonkger retursn null, return ErrantGuild

This commit is contained in:
2024-06-04 21:15:45 -05:00
parent a348056c86
commit 8ff06b1200
+3 -3
View File
@@ -639,17 +639,17 @@ public class City extends AbstractWorldObject {
public Guild getGuild() {
if (this.getTOL() == null)
return null;
return Guild.getErrantGuild();
if (this.isNpc == 1) {
if (this.getTOL().getOwner() == null)
return null;
return Guild.getErrantGuild();
return this.getTOL().getOwner().getGuild();
} else {
if (this.getTOL().getOwner() == null)
return null;
return Guild.getErrantGuild();
return this.getTOL().getOwner().getGuild();
}
}