mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
showing information on disk in disk drive if analyzer is used on it, closes #49
This commit is contained in:
parent
940e83995a
commit
8e5bb6f1f4
@ -13,7 +13,11 @@ class DiskDrive extends Environment with ComponentInventory with Rotatable with
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
def onAnalyze(stats: NBTTagCompound, player: EntityPlayer, side: Int, hitX: Float, hitY: Float, hitZ: Float) = null
|
||||
def onAnalyze(stats: NBTTagCompound, player: EntityPlayer, side: Int, hitX: Float, hitY: Float, hitZ: Float) =
|
||||
components(0) match {
|
||||
case Some(environment) => environment.node
|
||||
case _ => null
|
||||
}
|
||||
|
||||
override def canUpdate = false
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user