Fixed Sparks making pools losing mana even if there's no place for it to go.

This commit is contained in:
Lizbeth Rika committed 2014-08-29 03:08:39 +01:00
1 parent 475197c2f5
commit 6d2733ced1
1 file changed
+3 -1
@@ -154,8 +154,10 @@ public class EntitySpark extends Entity implements ISparkEntity {
int manaForEach = manaTotal / transfers.size();
if(manaForEach > transfers.size()) {
for(ISparkEntity spark : transfers) {
if(spark.getAttachedTile() == null || spark.getAttachedTile().isFull() || spark.areIncomingTransfersDone())
if(spark.getAttachedTile() == null || spark.getAttachedTile().isFull() || spark.areIncomingTransfersDone()) {
manaTotal -= manaForEach;
continue;
}
ISparkAttachable attached = spark.getAttachedTile();
attached.recieveMana(manaForEach);