File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/ir/sharif/aichallenge/server/logic/model/cell Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -107,12 +107,13 @@ public void manageResources() {
107107 int wantedAmount = ConstConfigs .WORKER_MAX_CARRYING_RESOURCE_AMOUNT - ant .getCarryingResourceAmount ();
108108 if (wantedAmount > this .getResourceAmount ()) {
109109 ant .setCarryingResourceAmount (ant .getCarryingResourceAmount () + this .getResourceAmount ());
110+ ant .setCarryingResourceType (this .getResourceType ());
110111 this .decreaseResource (this .getResourceAmount ());
111112 } else {
112113 ant .setCarryingResourceAmount (ant .getCarryingResourceAmount () + wantedAmount );
114+ ant .setCarryingResourceType (this .getResourceType ());
113115 this .decreaseResource (wantedAmount );
114116 }
115- ant .setCarryingResourceType (this .getResourceType ());
116117 }
117118 }
118119}
You can’t perform that action at this time.
0 commit comments