showing information on disk in disk drive if analyzer is used on it, closes #49

This commit is contained in:
Florian Nücke 2014-01-02 21:17:51 +01:00
parent 940e83995a
commit 8e5bb6f1f4

View File

@ -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