mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
Updated for the side check change.
This commit is contained in:
parent
ef0034742c
commit
e8eb3a4453
@ -17,5 +17,5 @@ class MotionSensor(val parent: SimpleDelegator) extends SimpleDelegate {
|
||||
|
||||
override def hasTileEntity = true
|
||||
|
||||
override def createTileEntity(world: World) = Some(new tileentity.MotionSensor)
|
||||
override def createTileEntity(world: World) = Some(new tileentity.MotionSensor(world.isRemote))
|
||||
}
|
@ -10,7 +10,9 @@ import net.minecraft.util.{AxisAlignedBB, Vec3}
|
||||
import scala.collection.convert.WrapAsScala._
|
||||
import scala.collection.mutable
|
||||
|
||||
class MotionSensor extends traits.Environment {
|
||||
class MotionSensor(val isClient: Boolean) extends traits.Environment {
|
||||
def this() = this(false)
|
||||
|
||||
val node = api.Network.newNode(this, Visibility.Network).
|
||||
withComponent("motion_sensor").
|
||||
withConnector().
|
||||
|
Loading…
x
Reference in New Issue
Block a user