|
|
@ -1519,7 +1519,7 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
|
|
|
|
|
|
|
|
int buildingDeposit = cost; |
|
|
|
int buildingDeposit = cost; |
|
|
|
|
|
|
|
|
|
|
|
if (b != null && (b.getStrongboxValue() + buildingDeposit) > b.getMaxGold()) { |
|
|
|
if (b != null && (b.getStrongboxValue() + buildingDeposit) > b.getMaxGold() && !b.isOwnerIsNPC()) { |
|
|
|
ErrorPopupMsg.sendErrorPopup(sourcePlayer, 206); |
|
|
|
ErrorPopupMsg.sendErrorPopup(sourcePlayer, 206); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -1575,7 +1575,7 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
b = null; |
|
|
|
b = null; |
|
|
|
int buildingDeposit = cost; |
|
|
|
int buildingDeposit = cost; |
|
|
|
|
|
|
|
|
|
|
|
if (b != null && (b.getStrongboxValue() + buildingDeposit) > b.getMaxGold()) { |
|
|
|
if (b != null && (b.getStrongboxValue() + buildingDeposit) > b.getMaxGold() && !b.isOwnerIsNPC()) { |
|
|
|
ErrorPopupMsg.sendErrorPopup(sourcePlayer, 206); |
|
|
|
ErrorPopupMsg.sendErrorPopup(sourcePlayer, 206); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|