Fixed the Mana Pool double dipping in resources.

This commit is contained in:
Vasco Lavos committed 2014-03-04 00:28:01 +00:00
1 parent 3f4ac639ae
commit 7f65e45d35
1 file changed
+4 -3
@@ -74,11 +74,12 @@ public class TilePool extends TileMod implements IManaPool {
int mana = recipe.getManaToConsume();
if(getCurrentMana() >= mana) {
recieveMana(-mana);
stack.stackSize--;
if(stack.stackSize == 0)
item.setDead();
if(!worldObj.isRemote) {
stack.stackSize--;
if(stack.stackSize == 0)
item.setDead();
ItemStack output = recipe.getOutput().copy();
EntityItem outputItem = new EntityItem(worldObj, xCoord + 0.5, yCoord + 1.5, zCoord + 0.5, output);
worldObj.spawnEntityInWorld(outputItem);