More spark fixes.

This commit is contained in:
Lizbeth Rika committed 2014-08-23 15:05:10 +01:00
1 parent d0fffb9996
commit d3a3a3fe17
1 file changed
+2 -2
@@ -61,7 +61,7 @@ public class EntitySpark extends Entity implements ISparkEntity {
super.onUpdate();
ISparkAttachable tile = getAttachedTile();
if(tile == null) {
if(tile == null && !worldObj.isRemote) {
setDead();
return;
}
@@ -153,7 +153,7 @@ public class EntitySpark extends Entity implements ISparkEntity {
int manaForEach = manaTotal / transfers.size();
if(manaForEach > transfers.size()) {
for(ISparkEntity spark : transfers) {
if(spark.getAttachedTile() == null)
if(spark.getAttachedTile() == null || spark.getAttachedTile().isFull() || spark.areIncomingTransfersDone())
continue;
ISparkAttachable attached = spark.getAttachedTile();