Skip to content

Commit 2fea540

Browse files
committed
Adjust tank indexing in the Transposer's transferFluid method
This updates the `sourceTank` parameter to be 1-based when called from Lua.
1 parent ad762c5 commit 2fea540

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/scala/li/cil/oc/server/component/traits/InventoryTransfer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ trait InventoryTransfer extends traits.WorldAware with traits.SideRestricted {
4848
val sinkSide = checkSideForAction(args, 1)
4949
val sinkPos = position.offset(sinkSide)
5050
val count = args.optFluidCount(2)
51-
val sourceTank = args.optInteger(3, -1)
51+
val sourceTank = args.optInteger(3, -1) - 1
5252

5353
onTransferContents() match {
5454
case Some(reason) =>

0 commit comments

Comments
 (0)