Merge branch 'master' of github.com:MightyPirates/OpenComputers into MC1.7

This commit is contained in:
Florian Nücke 2014-06-15 20:08:56 +02:00
commit 965aafacbb
4 changed files with 18 additions and 0 deletions

View File

@ -96,6 +96,15 @@ abstract class Case(val parent: SimpleDelegator) extends RedstoneAware with Simp
}
true
}
else if (player.getCurrentEquippedItem == null) {
if (!world.isRemote) {
world.getBlockTileEntity(x, y, z) match {
case computer: tileentity.Case if !computer.isRunning => computer.start()
case _ =>
}
}
true
}
else false
}

View File

@ -148,6 +148,15 @@ class RobotProxy(val parent: SpecialDelegator) extends RedstoneAware with Specia
}
true
}
else if (player.getCurrentEquippedItem == null) {
if (!world.isRemote) {
world.getBlockTileEntity(x, y, z) match {
case proxy: tileentity.RobotProxy if !proxy.isRunning => proxy.start()
case _ =>
}
}
true
}
else false
}