From 5e5ecfd30a967c276109bc6e066137ac8bc2df03 Mon Sep 17 00:00:00 2001 From: WayofTime Date: Sun, 15 Nov 2020 21:12:14 -0500 Subject: [PATCH] Update ItemSigilGreenGrove ...Again. Fixes a server crash when using the sigil on plants. --- .../bloodmagic/common/item/sigil/ItemSigilGreenGrove.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/wayoftime/bloodmagic/common/item/sigil/ItemSigilGreenGrove.java b/src/main/java/wayoftime/bloodmagic/common/item/sigil/ItemSigilGreenGrove.java index c8169481..fb71c50e 100644 --- a/src/main/java/wayoftime/bloodmagic/common/item/sigil/ItemSigilGreenGrove.java +++ b/src/main/java/wayoftime/bloodmagic/common/item/sigil/ItemSigilGreenGrove.java @@ -27,12 +27,9 @@ public class ItemSigilGreenGrove extends ItemSigilToggleableBase if (PlayerHelper.isFakePlayer(player)) 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; }