Fixed mana spreaders shooting two burts (one of those being visual only).

This commit is contained in:
Vasco Lavos committed 2014-03-10 21:06:53 +00:00
1 parent 1270165307
commit 100259f07a
1 file changed
+5 -2
@@ -209,8 +209,11 @@ public class TileSpreader extends TileSimpleInventory implements IManaCollector
if(canShootBurst && receiver.canRecieveManaFromBursts() && !receiver.isFull()) {
EntityManaBurst burst = getBurst(false);
if(burst != null) {
mana -= burst.getStartingMana();
worldObj.spawnEntityInWorld(burst);
if(!worldObj.isRemote) {
mana -= burst.getStartingMana();
worldObj.spawnEntityInWorld(burst);
}
canShootBurst = false;
PacketDispatcher.sendPacketToAllInDimension(getDescriptionPacket(), worldObj.provider.dimensionId);
}