mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-25 06:24:27 +00:00
Fixed crash if a Mana Pool is broken while a Spark is interacting with it. Closes #262
This commit is contained in:
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user