File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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) =>
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ object FluidUtils {
6363 stackToDrain = tankProperties(sourceTank).getContents
6464 if (stackToDrain != null ) {
6565 stackToDrain = stackToDrain.copy()
66- stackToDrain.amount = math.max (stackToDrain.amount, limit)
66+ stackToDrain.amount = math.min (stackToDrain.amount, limit)
6767 }
6868 }
6969 }
You can’t perform that action at this time.
0 commit comments