Skip to content

Commit

Permalink
make soul torches a recognized alter
Browse files Browse the repository at this point in the history
  • Loading branch information
Connorppeach committed Nov 29, 2023
1 parent 471b586 commit 5f3786d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/com/dogonfire/gods/managers/AltarManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public Block getAltarBlockFromSign(Block block)
{
return null;
}
if ((!altarBlock.getRelative(BlockFace.UP).getType().equals(Material.TORCH)) && (!altarBlock.getRelative(BlockFace.UP).getType().equals(Material.REDSTONE_TORCH)))
if ((!altarBlock.getRelative(BlockFace.UP).getType().equals(Material.SOUL_TORCH)) && (!altarBlock.getRelative(BlockFace.UP).getType().equals(Material.TORCH)) && (!altarBlock.getRelative(BlockFace.UP).getType().equals(Material.REDSTONE_TORCH)))
{
return null;
}
Expand Down Expand Up @@ -365,7 +365,7 @@ public boolean isAltarBlock(Block block)
{
return false;
}
if ((block.getRelative(BlockFace.UP).getType() != Material.TORCH) && (block.getRelative(BlockFace.UP).getType() != Material.REDSTONE_TORCH))
if ((block.getRelative(BlockFace.UP).getType() != Material.SOUL_TORCH) && (block.getRelative(BlockFace.UP).getType() != Material.TORCH) && (block.getRelative(BlockFace.UP).getType() != Material.REDSTONE_TORCH))
{
return false;
}
Expand Down Expand Up @@ -401,7 +401,7 @@ public boolean isAltarSign(Block block)
return false;
}

if ((!altarBlock.getRelative(BlockFace.UP).getType().equals(Material.TORCH)) && (!altarBlock.getRelative(BlockFace.UP).getType().equals(Material.REDSTONE_TORCH)))
if ((!altarBlock.getRelative(BlockFace.UP).getType().equals(Material.SOUL_TORCH)) &&(!altarBlock.getRelative(BlockFace.UP).getType().equals(Material.TORCH)) && (!altarBlock.getRelative(BlockFace.UP).getType().equals(Material.REDSTONE_TORCH)))
{
return false;
}
Expand All @@ -414,7 +414,7 @@ public boolean isAltarTorch(Block block)
{
return false;
}
if ((block.getType() != Material.TORCH) && (block.getType() != Material.REDSTONE_TORCH))
if ((block.getType() != Material.TORCH) && (block.getType() != Material.SOUL_TORCH) && (block.getType() != Material.REDSTONE_TORCH))
{
return false;
}
Expand Down

0 comments on commit 5f3786d

Please sign in to comment.