Doing some minor tweaks for the release.
This commit is contained in:
parent
39e3d6eb34
commit
adc14d5f46
3 changed files with 15 additions and 10 deletions
|
@ -33,6 +33,11 @@ public class AltarRecipeRegistry
|
|||
|
||||
public static boolean isRequiredItemValid(ItemStack testItem, int currentTierAltar)
|
||||
{
|
||||
if(testItem == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
for (AltarRecipe recipe : altarRecipes)
|
||||
{
|
||||
if (recipe.doesRequiredItemMatch(testItem, currentTierAltar))
|
||||
|
|
|
@ -69,7 +69,7 @@ public class TEAltar extends TileEntity implements IInventory, IFluidTank, IFlui
|
|||
private int lockdownDuration;
|
||||
private int demonBloodDuration;
|
||||
|
||||
private int cooldownAfterCrafting = 0;
|
||||
private int cooldownAfterCrafting = 500;
|
||||
|
||||
public TEAltar()
|
||||
{
|
||||
|
@ -584,6 +584,11 @@ public class TEAltar extends TileEntity implements IInventory, IFluidTank, IFlui
|
|||
this.lockdownDuration--;
|
||||
}
|
||||
|
||||
if(worldObj.isRemote)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!worldObj.isRemote && worldObj.getWorldTime() % 20 == 0)
|
||||
{
|
||||
{
|
||||
|
@ -647,8 +652,8 @@ public class TEAltar extends TileEntity implements IInventory, IFluidTank, IFlui
|
|||
this.fluidOutput.amount += fluidOutputted;
|
||||
this.fluid.amount -= fluidOutputted;
|
||||
}
|
||||
|
||||
if (worldObj.getWorldTime() % 100 == 0 && this.cooldownAfterCrafting <= 0)
|
||||
|
||||
if (worldObj.getWorldTime() % 100 == 0 && (this.isActive || this.cooldownAfterCrafting <= 0))
|
||||
{
|
||||
startCycle();
|
||||
}
|
||||
|
@ -866,11 +871,6 @@ public class TEAltar extends TileEntity implements IInventory, IFluidTank, IFlui
|
|||
return;
|
||||
}
|
||||
|
||||
if (getStackInSlot(0) == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isActive)
|
||||
{
|
||||
progress = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue