mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 19:59:36 +00:00
Fixed Sparks making pools losing mana even if there's no place for it to go.
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user