aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authoriouter <62897714+iouter@users.noreply.github.com>2022-10-09 18:03:54 +0800
committerGitHub <noreply@github.com>2022-10-09 12:03:54 +0200
commit6c5910a4e7f342b09fcf3a642dfd3cac8879545d (patch)
tree1dd6936dca1f0b720dbf298345a7ec7f7fb0ea36 /src/main/java
parent4f05ff3638399c6b32953620c4673f726c8c8264 (diff)
downloadGT5-Unofficial-6c5910a4e7f342b09fcf3a642dfd3cac8879545d.tar.gz
GT5-Unofficial-6c5910a4e7f342b09fcf3a642dfd3cac8879545d.tar.bz2
GT5-Unofficial-6c5910a4e7f342b09fcf3a642dfd3cac8879545d.zip
Update GT_TileEntity_Windmill.java (#214)
Former-commit-id: da53075b7721e68af4fcb6ee3bf48d011953cac3
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_Windmill.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_Windmill.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_Windmill.java
index e65d5d1ebb..a1e643abd0 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_Windmill.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_Windmill.java
@@ -240,7 +240,7 @@ public class GT_TileEntity_Windmill extends GT_MetaTileEntity_EnhancedMultiBlock
// Decrease input stack by appropriate amount (Not always 1)
for (int i = 0; i < this.mMulti; i++) {
if (!tRecipe.isRecipeInputEqual(true, null, itemStack)) {
- this.mMulti = i + 1;
+ this.mMulti = i;
break;
}
}
@@ -255,7 +255,7 @@ public class GT_TileEntity_Windmill extends GT_MetaTileEntity_EnhancedMultiBlock
* ((float) Math.sqrt((float) 1 / (this.rotorBlock.getWindStrength() + 1)))
* OutputMultiplier(rotorBlock)
* (mRecipe[0] + mRecipe[1])));
- int amount = Math.round(multiper * (this.mOutputItems[0].stackSize * this.mMulti));
+ int amount = (int) Math.floor(multiper * (this.mOutputItems[0].stackSize * this.mMulti));
// Split ItemStack --by gtpp
List<ItemStack> splitStacks = new ArrayList<>();