diff --git a/api/source/Creep.md b/api/source/Creep.md index 84786b3a..c586715f 100644 --- a/api/source/Creep.md +++ b/api/source/Creep.md @@ -802,7 +802,7 @@ ERR_INVALID_ARGS | enable argument is not a boolean value. {% api_method pickup 'target' A %} ```javascript -const target = creep.pos.findClosestByRange(FIND_DROPPED_ENERGY); +const target = creep.pos.findClosestByRange(FIND_DROPPED_RESOURCE); if(target) { if(creep.pickup(target) == ERR_NOT_IN_RANGE) { creep.moveTo(target);