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
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
|
|
|
@ -76,10 +76,13 @@ public class ItemRitualDiviner extends Item implements IVariantProvider
|
||||||
{
|
{
|
||||||
if (player.isSneaking())
|
if (player.isSneaking())
|
||||||
{
|
{
|
||||||
trySetDisplayedRitual(stack, world, pos);
|
if (world.isRemote)
|
||||||
|
{
|
||||||
|
trySetDisplayedRitual(stack, world, pos);
|
||||||
|
}
|
||||||
|
|
||||||
return EnumActionResult.SUCCESS;
|
return EnumActionResult.SUCCESS;
|
||||||
}
|
} else if (addRuneToRitual(stack, world, pos, player))
|
||||||
else if (addRuneToRitual(stack, world, pos, player))
|
|
||||||
{
|
{
|
||||||
if (world.isRemote)
|
if (world.isRemote)
|
||||||
{
|
{
|
||||||
|
@ -95,7 +98,7 @@ public class ItemRitualDiviner extends Item implements IVariantProvider
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a single rune to the ritual.
|
* Adds a single rune to the ritual.
|
||||||
*
|
*
|
||||||
* @param stack
|
* @param stack
|
||||||
* - The Ritual Diviner stack
|
* - The Ritual Diviner stack
|
||||||
* @param world
|
* @param world
|
||||||
|
@ -104,7 +107,7 @@ public class ItemRitualDiviner extends Item implements IVariantProvider
|
||||||
* - Block Position of the MRS.
|
* - Block Position of the MRS.
|
||||||
* @param player
|
* @param player
|
||||||
* - The Player attempting to place the ritual
|
* - The Player attempting to place the ritual
|
||||||
*
|
*
|
||||||
* @return - True if a rune was successfully added
|
* @return - True if a rune was successfully added
|
||||||
*/
|
*/
|
||||||
public boolean addRuneToRitual(ItemStack stack, World world, BlockPos pos, EntityPlayer player)
|
public boolean addRuneToRitual(ItemStack stack, World world, BlockPos pos, EntityPlayer player)
|
||||||
|
@ -131,7 +134,10 @@ public class ItemRitualDiviner extends Item implements IVariantProvider
|
||||||
{
|
{
|
||||||
if (RitualHelper.isRuneType(world, newPos, component.getRuneType()))
|
if (RitualHelper.isRuneType(world, newPos, component.getRuneType()))
|
||||||
{
|
{
|
||||||
undisplayHologram();
|
if (world.isRemote)
|
||||||
|
{
|
||||||
|
undisplayHologram();
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
// Replace existing ritual stone
|
// Replace existing ritual stone
|
||||||
|
|
Loading…
Reference in a new issue