mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Revert 16bb4a8902
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:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user