From b2e69ab69c2e8d1e88169db09a224d7be96319ce Mon Sep 17 00:00:00 2001 From: repo_alt Date: Fri, 22 Jul 2022 14:55:01 +0400 Subject: [PATCH] Allow robot "use" to actually use any side, including the side it is facing --- src/main/scala/li/cil/oc/server/component/Agent.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/li/cil/oc/server/component/Agent.scala b/src/main/scala/li/cil/oc/server/component/Agent.scala index 7db551608..c132211b9 100644 --- a/src/main/scala/li/cil/oc/server/component/Agent.scala +++ b/src/main/scala/li/cil/oc/server/component/Agent.scala @@ -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.