From e1868ac2008da601c00267f650bd64d389b739a6 Mon Sep 17 00:00:00 2001 From: Micle Date: Sun, 16 Jan 2022 22:21:09 +0000 Subject: [PATCH] Fixed item being unusable on dedicated servers. --- .../java/dev/micle/totemofreviving/item/StrawTotemItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/micle/totemofreviving/item/StrawTotemItem.java b/src/main/java/dev/micle/totemofreviving/item/StrawTotemItem.java index e88caed..4610cec 100644 --- a/src/main/java/dev/micle/totemofreviving/item/StrawTotemItem.java +++ b/src/main/java/dev/micle/totemofreviving/item/StrawTotemItem.java @@ -89,7 +89,7 @@ public class StrawTotemItem extends Item { @OnlyIn(Dist.CLIENT) @ParametersAreNonnullByDefault public ActionResult use(World world, PlayerEntity playerEntity, Hand hand) { - if (!Config.Server.getStrawTotemConfig().getIsEnabled() || world.isClientSide) { return super.use(world, playerEntity, hand); } + if (!Config.Server.getStrawTotemConfig().getIsEnabled() || !world.isClientSide) { return super.use(world, playerEntity, hand); } ItemStack charge; if (hand.equals(Hand.MAIN_HAND)) { charge = playerEntity.getOffhandItem();