File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -802,7 +802,7 @@ ERR_INVALID_ARGS | <code>enable</code> argument is not a boolean value.
802
802
{% api_method pickup 'target' A %}
803
803
804
804
``` javascript
805
- const target = creep .pos .findClosestByRange (FIND_DROPPED_ENERGY );
805
+ const target = creep .pos .findClosestByRange (FIND_DROPPED_RESOURCES );
806
806
if (target) {
807
807
if (creep .pickup (target) == ERR_NOT_IN_RANGE ) {
808
808
creep .moveTo (target);
Original file line number Diff line number Diff line change @@ -484,7 +484,7 @@ ERR_INVALID_ARGS | <code>enable</code> argument is not a boolean value.
484
484
{% api_method pickup 'target' A %}
485
485
486
486
``` javascript
487
- const target = creep .pos .findClosestByRange (FIND_DROPPED_ENERGY );
487
+ const target = creep .pos .findClosestByRange (FIND_DROPPED_RESOURCES );
488
488
if (target) {
489
489
if (creep .pickup (target) == ERR_NOT_IN_RANGE ) {
490
490
creep .moveTo (target);
You can’t perform that action at this time.
0 commit comments