mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 02:39:48 -04:00
Hmm, I wonder why that was there. Oh well. Fixes #2001.
This commit is contained in:
parent
917befcd0e
commit
884842b843
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user