Made equalizer actually put stuff in the containers
This commit is contained in:
parent
2203342421
commit
d282f9321c
|
@ -36,7 +36,7 @@ function run(creep) {
|
|||
}
|
||||
});
|
||||
|
||||
if(creep.withdraw(minContainer, RESOURCE_ENERGY) == ERR_NOT_IN_RANGE) {
|
||||
if(creep.transfer(minContainer, RESOURCE_ENERGY) == ERR_NOT_IN_RANGE) {
|
||||
creep.moveTo(minContainer);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue