Skip to content

Commit

Permalink
Adjust tank indexing in the Transposer's transferFluid method
Browse files Browse the repository at this point in the history
This updates the `sourceTank` parameter to be 1-based when called from
Lua.
  • Loading branch information
yut23 committed Apr 7, 2024
1 parent ad762c5 commit 2fea540
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ trait InventoryTransfer extends traits.WorldAware with traits.SideRestricted {
val sinkSide = checkSideForAction(args, 1)
val sinkPos = position.offset(sinkSide)
val count = args.optFluidCount(2)
val sourceTank = args.optInteger(3, -1)
val sourceTank = args.optInteger(3, -1) - 1

onTransferContents() match {
case Some(reason) =>
Expand Down

0 comments on commit 2fea540

Please sign in to comment.