mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-14 01:04:16 +00:00
Move more things inside the world remote check for the petal apothecary crafting. Closes #1161
This commit is contained in:
1 parent
228d319823
commit
33d7e67af9
1 file changed
+6
-5
@@ -109,10 +109,10 @@ public class TileAltar extends TileSimpleInventory implements ISidedInventory, I
|
||||
if(recipe.matches(this)) {
|
||||
saveLastRecipe();
|
||||
|
||||
for(int i = 0; i < getSizeInventory(); i++)
|
||||
setInventorySlotContents(i, null);
|
||||
|
||||
if(!worldObj.isRemote) {
|
||||
for(int i = 0; i < getSizeInventory(); i++)
|
||||
setInventorySlotContents(i, null);
|
||||
|
||||
stack.stackSize--;
|
||||
if(stack.stackSize == 0)
|
||||
item.setDead();
|
||||
@@ -120,11 +120,12 @@ public class TileAltar extends TileSimpleInventory implements ISidedInventory, I
|
||||
ItemStack output = recipe.getOutput().copy();
|
||||
EntityItem outputItem = new EntityItem(worldObj, xCoord + 0.5, yCoord + 1.5, zCoord + 0.5, output);
|
||||
worldObj.spawnEntityInWorld(outputItem);
|
||||
|
||||
setWater(false);
|
||||
worldObj.func_147453_f(xCoord, yCoord, zCoord, worldObj.getBlock(xCoord, yCoord, zCoord));
|
||||
}
|
||||
|
||||
craftingFanciness();
|
||||
setWater(false);
|
||||
worldObj.func_147453_f(xCoord, yCoord, zCoord, worldObj.getBlock(xCoord, yCoord, zCoord));
|
||||
didChange = true;
|
||||
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user