Added the appropriate SideOnly checks to make the Rituals work again. Fixes #817 and #819

This commit is contained in:
WayofTime 2016-06-24 17:23:18 -04:00
parent f831c0b1e6
commit c4e3dc81f5
2 changed files with 17 additions and 6 deletions

View file

@ -1,3 +1,8 @@
------------------------------------------------------
Version 2.0.2-46
------------------------------------------------------
- Fixed it so Ritual stones can be placed by the Ritual Diviner again.
------------------------------------------------------
Version 2.0.2-45
------------------------------------------------------

View file

@ -76,10 +76,13 @@ public class ItemRitualDiviner extends Item implements IVariantProvider
{
if (player.isSneaking())
{
trySetDisplayedRitual(stack, world, pos);
if (world.isRemote)
{
trySetDisplayedRitual(stack, world, pos);
}
return EnumActionResult.SUCCESS;
}
else if (addRuneToRitual(stack, world, pos, player))
} else if (addRuneToRitual(stack, world, pos, player))
{
if (world.isRemote)
{
@ -131,7 +134,10 @@ public class ItemRitualDiviner extends Item implements IVariantProvider
{
if (RitualHelper.isRuneType(world, newPos, component.getRuneType()))
{
undisplayHologram();
if (world.isRemote)
{
undisplayHologram();
}
} else
{
// Replace existing ritual stone