Update ItemSigilGreenGrove
...Again. Fixes a server crash when using the sigil on plants.
This commit is contained in:
parent
bc2530583a
commit
5e5ecfd30a
|
@ -27,12 +27,9 @@ public class ItemSigilGreenGrove extends ItemSigilToggleableBase
|
||||||
if (PlayerHelper.isFakePlayer(player))
|
if (PlayerHelper.isFakePlayer(player))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (NetworkHelper.getSoulNetwork(player).syphonAndDamage(player, SoulTicket.item(stack, world, player, getLpUsed())).isSuccess() && applyBonemeal(stack, world, blockPos, player))
|
if (!world.isRemote && NetworkHelper.getSoulNetwork(player).syphonAndDamage(player, SoulTicket.item(stack, world, player, getLpUsed())).isSuccess() && applyBonemeal(stack, world, blockPos, player))
|
||||||
{
|
{
|
||||||
if (!world.isRemote)
|
world.playEvent(2005, blockPos, 0);
|
||||||
{
|
|
||||||
world.playEvent(2005, blockPos, 0);
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue