mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 21:19:46 +00:00
Fixed the Ring of Loki checking your offhand item and thus negating the cursor addition if you have no item in either hand. Closes #2136
This commit is contained in:
1 parent
8aac740b77
commit
8139acc8bf
1 file changed
+2
-1
@@ -29,6 +29,7 @@ import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.util.EnumHand;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.RayTraceResult;
|
||||
import net.minecraft.world.World;
|
||||
@@ -68,7 +69,7 @@ public class ItemLokiRing extends ItemRelicBauble implements IWireframeCoordinat
|
||||
public static void onPlayerInteract(PlayerInteractEvent.RightClickBlock event) {
|
||||
EntityPlayer player = event.getEntityPlayer();
|
||||
ItemStack lokiRing = getLokiRing(player);
|
||||
if(lokiRing == null || player.worldObj.isRemote)
|
||||
if(lokiRing == null || player.worldObj.isRemote || event.getHand() == EnumHand.OFF_HAND)
|
||||
return;
|
||||
|
||||
int slot = -1;
|
||||
|
||||
Reference in new issue
Block a user