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