mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-24 21:47:12 -04:00
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:
commit
d4f1c82688
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user