Fixed Sparks never outputting their mana into non-pool blocks.

This commit is contained in:
Lizbeth Rika committed 2014-08-27 23:42:29 +01:00
1 parent 2050ae2f27
commit fc0096e5ed
2 files changed
+1 -2

No files matched your search

@@ -33,7 +33,6 @@ public final class BotaniaCreativeTab extends CreativeTabs {
super(LibMisc.MOD_ID);
setNoTitle();
setBackgroundImageName(LibResources.GUI_CREATIVE);
}
@Override
@@ -273,7 +273,7 @@ public class EntitySpark extends Entity implements ISparkEntity {
Entity e = worldObj.getEntityByID(id);
if(e != null && e instanceof ISparkEntity) {
ISparkEntity spark = (ISparkEntity) e;
if(spark != this && !spark.areIncomingTransfersDone() && spark.getAttachedTile() != null && !spark.getAttachedTile().isFull() && ((getUpgrade() == 0 && spark.getUpgrade() == 2) || (getUpgrade() == 3 && (spark.getUpgrade() == 0 || spark.getUpgrade() == 1))) && spark.getAttachedTile() instanceof IManaPool) {
if(spark != this && !spark.areIncomingTransfersDone() && spark.getAttachedTile() != null && !spark.getAttachedTile().isFull() && (((getUpgrade() == 0 && spark.getUpgrade() == 2) || (getUpgrade() == 3 && (spark.getUpgrade() == 0 || spark.getUpgrade() == 1))) || !(spark.getAttachedTile() instanceof IManaPool))) {
entities.add((ISparkEntity) e);
added = true;
}