mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-24 05:54:49 +00:00
Fixed the Mana Pool double dipping in resources.
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user