This commit is contained in:
parent
f831c0b1e6
commit
c4e3dc81f5
|
@ -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
|
Version 2.0.2-45
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
|
|
|
@ -75,11 +75,14 @@ public class ItemRitualDiviner extends Item implements IVariantProvider
|
||||||
public EnumActionResult onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
|
public EnumActionResult onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
|
||||||
{
|
{
|
||||||
if (player.isSneaking())
|
if (player.isSneaking())
|
||||||
|
{
|
||||||
|
if (world.isRemote)
|
||||||
{
|
{
|
||||||
trySetDisplayedRitual(stack, world, pos);
|
trySetDisplayedRitual(stack, world, pos);
|
||||||
return EnumActionResult.SUCCESS;
|
|
||||||
}
|
}
|
||||||
else if (addRuneToRitual(stack, world, pos, player))
|
|
||||||
|
return EnumActionResult.SUCCESS;
|
||||||
|
} else if (addRuneToRitual(stack, world, pos, player))
|
||||||
{
|
{
|
||||||
if (world.isRemote)
|
if (world.isRemote)
|
||||||
{
|
{
|
||||||
|
@ -130,8 +133,11 @@ public class ItemRitualDiviner extends Item implements IVariantProvider
|
||||||
if (RitualHelper.isRune(world, newPos))
|
if (RitualHelper.isRune(world, newPos))
|
||||||
{
|
{
|
||||||
if (RitualHelper.isRuneType(world, newPos, component.getRuneType()))
|
if (RitualHelper.isRuneType(world, newPos, component.getRuneType()))
|
||||||
|
{
|
||||||
|
if (world.isRemote)
|
||||||
{
|
{
|
||||||
undisplayHologram();
|
undisplayHologram();
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
// Replace existing ritual stone
|
// Replace existing ritual stone
|
||||||
|
|
Loading…
Reference in a new issue