We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7c6f48 commit 6138682Copy full SHA for 6138682
api/source/PowerCreep.md
@@ -484,7 +484,7 @@ ERR_INVALID_ARGS | <code>enable</code> argument is not a boolean value.
484
{% api_method pickup 'target' A %}
485
486
```javascript
487
-const target = creep.pos.findClosestByRange(FIND_DROPPED_ENERGY);
+const target = creep.pos.findClosestByRange(FIND_DROPPED_RESOURCE);
488
if(target) {
489
if(creep.pickup(target) == ERR_NOT_IN_RANGE) {
490
creep.moveTo(target);
0 commit comments