Fixed Hellfire Forge's GUI
This commit is contained in:
parent
4fd39b6348
commit
cbe858e581
|
@ -2,6 +2,7 @@
|
|||
Version 2.0.0-20
|
||||
------------------------------------------------------
|
||||
- Fixed Blood Altar crashing on odd occasions.
|
||||
- Fixed GUI of hellfire forge.
|
||||
|
||||
------------------------------------------------------
|
||||
Version 2.0.0-19
|
||||
|
|
|
@ -51,17 +51,8 @@ public class TileSoulForge extends TileInventory implements ITickable, IDemonWil
|
|||
@Override
|
||||
public void update()
|
||||
{
|
||||
if (worldObj.isRemote)
|
||||
if (!worldObj.isRemote)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!hasSoulGemOrSoul())
|
||||
{
|
||||
burnTime = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
for (EnumDemonWillType type : EnumDemonWillType.values())
|
||||
{
|
||||
double willInWorld = WorldDemonWillHandler.getCurrentWill(worldObj, pos, type);
|
||||
|
@ -79,6 +70,13 @@ public class TileSoulForge extends TileInventory implements ITickable, IDemonWil
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!hasSoulGemOrSoul())
|
||||
{
|
||||
burnTime = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
double soulsInGem = getWill();
|
||||
|
||||
|
@ -105,12 +103,15 @@ public class TileSoulForge extends TileInventory implements ITickable, IDemonWil
|
|||
{
|
||||
double requiredSouls = recipe.getSoulsDrained();
|
||||
if (requiredSouls > 0)
|
||||
{
|
||||
if (!worldObj.isRemote)
|
||||
{
|
||||
consumeSouls(requiredSouls);
|
||||
}
|
||||
}
|
||||
|
||||
if (!worldObj.isRemote)
|
||||
craftItem(recipe);
|
||||
|
||||
}
|
||||
|
||||
burnTime = 0;
|
||||
|
@ -122,8 +123,10 @@ public class TileSoulForge extends TileInventory implements ITickable, IDemonWil
|
|||
{
|
||||
burnTime = 0;
|
||||
}
|
||||
} else
|
||||
{
|
||||
burnTime = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public double getProgressForGui()
|
||||
|
|
Loading…
Reference in a new issue