npc buildings dont accumulate gold

This commit is contained in:
2024-04-21 16:42:08 -05:00
parent 73c1f97051
commit e708bb02f5
+4 -1
View File
@@ -1000,7 +1000,10 @@ public class Building extends AbstractWorldObject {
public final boolean setStrongboxValue(int newValue) {
boolean success = true;
if(this.isOwnerIsNPC()) {
newValue = 0;
this.setStrongboxValue(0);
}
try {
DbManager.BuildingQueries.SET_PROPERTY(this, "currentGold", newValue);
this._strongboxValue = newValue;