Skip to content

Commit 6138682

Browse files
authored
Use FIND_DROPPED_RESOURCE
Addresses screeps#144
1 parent e7c6f48 commit 6138682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/source/PowerCreep.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ ERR_INVALID_ARGS | <code>enable</code> argument is not a boolean value.
484484
{% api_method pickup 'target' A %}
485485

486486
```javascript
487-
const target = creep.pos.findClosestByRange(FIND_DROPPED_ENERGY);
487+
const target = creep.pos.findClosestByRange(FIND_DROPPED_RESOURCE);
488488
if(target) {
489489
if(creep.pickup(target) == ERR_NOT_IN_RANGE) {
490490
creep.moveTo(target);

0 commit comments

Comments
 (0)