because I'm a derp and shouldn't code during a heat wave after being at work for over 10 hours.
This commit is contained in:
TheWhiteWolves committed 2015-07-02 11:46:17 +01:00
1 parent fbc2e877e0
commit d636e99f0e
1 file changed
+3 -5
@@ -101,7 +101,7 @@ public class EntityPoolMinecart extends EntityMinecart {
int transfer = Math.min(TRANSFER_RATE, poolMana);
int actualTransfer = Math.min(TilePool.MAX_MANA - cartMana, transfer);
if(actualTransfer > 0) {
pool.recieveMana(-actualTransfer);
pool.recieveMana(-transfer);
setMana(cartMana + actualTransfer);
did = true;
}
@@ -109,12 +109,10 @@ public class EntityPoolMinecart extends EntityMinecart {
can = true;
if(!pool.isFull()) {
int cartMana = getMana();
int poolMana = pool.getCurrentMana();
int transfer = Math.min(TRANSFER_RATE, cartMana);
int actualTransfer = Math.min(TilePool.MAX_MANA - poolMana, transfer);
if(transfer > 0) {
pool.recieveMana(actualTransfer);
setMana(cartMana - actualTransfer);
pool.recieveMana(transfer);
setMana(cartMana - transfer);
did = true;
}
}