From 884842b84378e9d15bb7d99c282e27b072434c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Sun, 18 Sep 2016 17:24:24 +0200 Subject: [PATCH] Hmm, I wonder why that was there. Oh well. Fixes #2001. --- .../scala/li/cil/oc/common/tileentity/Screen.scala | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/main/scala/li/cil/oc/common/tileentity/Screen.scala b/src/main/scala/li/cil/oc/common/tileentity/Screen.scala index a881ef93a..db2321902 100644 --- a/src/main/scala/li/cil/oc/common/tileentity/Screen.scala +++ b/src/main/scala/li/cil/oc/common/tileentity/Screen.scala @@ -248,16 +248,9 @@ class Screen(var tier: Int) extends traits.TextBuffer with SidedEnvironment with val hitX = arrow.posX - x val hitY = arrow.posY - y val hitZ = arrow.posZ - z - val hitXInner = math.abs(hitX - 0.5) < 0.45 - val hitYInner = math.abs(hitY - 0.5) < 0.45 - val hitZInner = math.abs(hitZ - 0.5) < 0.45 - if (hitXInner && hitYInner && !hitZInner || - hitXInner && !hitYInner && hitZInner || - !hitXInner && hitYInner && hitZInner) { - arrow.shootingEntity match { - case player: EntityPlayer if player == Minecraft.getMinecraft.thePlayer => click(hitX, hitY, hitZ) - case _ => - } + arrow.shootingEntity match { + case player: EntityPlayer if player == Minecraft.getMinecraft.thePlayer => click(hitX, hitY, hitZ) + case _ => } } arrows.clear()