mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
parent
8149f0eb8e
commit
ed99a18944
@ -60,8 +60,13 @@ class Adapter extends traits.Environment with traits.ComponentInventory with tra
|
|||||||
|
|
||||||
// ----------------------------------------------------------------------- //
|
// ----------------------------------------------------------------------- //
|
||||||
|
|
||||||
override def onAnalyze(player: EntityPlayer, side: Int, hitX: Float, hitY: Float, hitZ: Float) = blocks collect {
|
override def onAnalyze(player: EntityPlayer, side: Int, hitX: Float, hitY: Float, hitZ: Float): Array[Node] = {
|
||||||
case Some(((environment, _))) => environment.node
|
(blocks collect {
|
||||||
|
case Some((environment, _)) => environment.node
|
||||||
|
}) ++
|
||||||
|
(components collect {
|
||||||
|
case Some(environment) => environment.node
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------- //
|
// ----------------------------------------------------------------------- //
|
||||||
|
Loading…
x
Reference in New Issue
Block a user