aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTechnus <daniel112092@gmail.com>2017-09-10 22:38:36 +0200
committerTechnus <daniel112092@gmail.com>2017-09-10 22:38:36 +0200
commit532a2a68f9343f03246cb36a1d2a16b6f58bbea6 (patch)
tree9f0025b5d135adec367c6f124472c8afb5d31de9 /src
parent3c865dc935d0a2e3725bc4d38c6017ed41087c8b (diff)
downloadGT5-Unofficial-532a2a68f9343f03246cb36a1d2a16b6f58bbea6.tar.gz
GT5-Unofficial-532a2a68f9343f03246cb36a1d2a16b6f58bbea6.tar.bz2
GT5-Unofficial-532a2a68f9343f03246cb36a1d2a16b6f58bbea6.zip
fix infuser
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_infuser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_infuser.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_infuser.java
index f2dce92ffa..bdca45aac5 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_infuser.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_infuser.java
@@ -143,7 +143,7 @@ public class GT_MetaTileEntity_EM_infuser extends GT_MetaTileEntity_MultiblockBa
private long doChargeItemStack(IElectricItem item, ItemStack stack) {
try {
double euDiff = item.getMaxCharge(stack) - ElectricItem.manager.getCharge(stack);
- if (euDiff > 0) this.setEUVar(this.getEUVar() - this.getEUVar() >> 5);
+ if (euDiff > 0) this.setEUVar(this.getEUVar() - (this.getEUVar() >> 5));
long remove = (long) Math.ceil(
ElectricItem.manager.charge(stack,
Math.min(euDiff, this.getEUVar())