From 55a0f3e04e9a21120b215f94b4bf5c6ce7ec16bc Mon Sep 17 00:00:00 2001 From: Vincent Lee Date: Tue, 17 Dec 2019 22:15:53 -0600 Subject: [PATCH] Fix #3054 --- .../botania/common/item/equipment/bauble/ItemSwapRing.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemSwapRing.java b/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemSwapRing.java index cb2ed63a9..2478b1f29 100644 --- a/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemSwapRing.java +++ b/src/main/java/vazkii/botania/common/item/equipment/bauble/ItemSwapRing.java @@ -31,7 +31,7 @@ public class ItemSwapRing extends ItemBauble { @Override public void onWornTick(ItemStack stack, LivingEntity entity) { - if(!(entity instanceof PlayerEntity)) + if(entity.world.isRemote && !(entity instanceof PlayerEntity)) return; PlayerEntity player = (PlayerEntity) entity; @@ -42,7 +42,7 @@ public class ItemSwapRing extends ItemBauble { ISortableTool tool = (ISortableTool) currentStack.getItem(); RayTraceResult pos = ToolCommons.raytraceFromEntity(player.world, player, - RayTraceContext.FluidMode.SOURCE_ONLY, 4.5F); + RayTraceContext.FluidMode.NONE, 4.5F); ToolType typeToFind = null; if(player.isSwingInProgress && pos.getType() == RayTraceResult.Type.BLOCK) {