Merge pull request #68 from GTNewHorizons/feature/useSide

Allow robot "use" to actually use any side, including the side it is facing
This commit is contained in:
Connor-Colenso 2022-07-23 01:22:09 +01:00 committed by GitHub
commit d4f1c82688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ trait Agent extends traits.WorldControl with traits.InventoryControl with traits
val facing = checkSideForAction(args, 0)
val sides =
if (args.isInteger(1)) {
Iterable(checkSideForFace(args, 1, facing))
Iterable(args.checkSideAny(1))
}
else {
// Always try the direction we're looking first.