Fixed crash if a Mana Pool is broken while a Spark is interacting with it. Closes #262

This commit is contained in:
Lizbeth Rika committed 2014-08-23 14:52:49 +01:00
1 parent 7ba4d349b9
commit d0fffb9996
1 file changed
+3
@@ -153,6 +153,9 @@ public class EntitySpark extends Entity implements ISparkEntity {
int manaForEach = manaTotal / transfers.size();
if(manaForEach > transfers.size()) {
for(ISparkEntity spark : transfers) {
if(spark.getAttachedTile() == null)
continue;
ISparkAttachable attached = spark.getAttachedTile();
attached.recieveMana(manaForEach);