forked from MagicBane/Server
Refactor warehouse part two.
This commit is contained in:
@@ -271,7 +271,7 @@ public class Mine extends AbstractGameObject {
|
||||
if (guildCity == null)
|
||||
return false;
|
||||
|
||||
if (guildCity.getWarehouse() == null) {
|
||||
if (guildCity.warehouse == null) {
|
||||
ErrorPopupMsg.sendErrorMsg(playerCharacter, "No Warehouse exists for this claim.");
|
||||
return false;
|
||||
}
|
||||
@@ -479,10 +479,10 @@ public class Mine extends AbstractGameObject {
|
||||
if (this.owningGuild.getOwnedCity() == null)
|
||||
return false;
|
||||
|
||||
if (this.owningGuild.getOwnedCity().getWarehouse() == null)
|
||||
if (this.owningGuild.getOwnedCity().warehouse == null)
|
||||
return false;
|
||||
|
||||
return Warehouse.depositFromMine(this, Enum.ResourceType.resourceLookup.get(this.production.templateID), this.getModifiedProductionAmount(), this.owningGuild.getOwnedCity().getWarehouse());
|
||||
return Warehouse.depositFromMine(this, Enum.ResourceType.resourceLookup.get(this.production.templateID), this.getModifiedProductionAmount(), this.owningGuild.getOwnedCity().warehouse);
|
||||
}
|
||||
|
||||
public boolean updateGuildOwner(PlayerCharacter playerCharacter) {
|
||||
|
||||
Reference in New Issue
Block a user