mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 19:59:36 +00:00
recieve
This commit is contained in:
1 parent
0f2c8d61b6
commit
43337b723d
27 files changed
+59
-67
No files matched your search
@@ -157,7 +157,7 @@ public class EntitySpark extends EntitySparkBase implements ISparkEntity {
|
||||
int cost = items.get(stack);
|
||||
int manaToPut = Math.min(getAttachedTile().getCurrentMana(), cost);
|
||||
((IManaItem) stack.getItem()).addMana(stack, manaToPut);
|
||||
getAttachedTile().recieveMana(-manaToPut);
|
||||
getAttachedTile().receiveMana(-manaToPut);
|
||||
particlesTowards(player);
|
||||
}
|
||||
|
||||
@@ -207,12 +207,12 @@ public class EntitySpark extends EntitySparkBase implements ISparkEntity {
|
||||
|
||||
ISparkAttachable attached = spark.getAttachedTile();
|
||||
int spend = Math.min(attached.getAvailableSpaceForMana(), manaForEach);
|
||||
attached.recieveMana(spend);
|
||||
attached.receiveMana(spend);
|
||||
manaSpent += spend;
|
||||
|
||||
particlesTowards((Entity) spark);
|
||||
}
|
||||
tile.recieveMana(-manaSpent);
|
||||
tile.receiveMana(-manaSpent);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user