whoops, forgot color

#closes 3184 again
This commit is contained in:
payonel 2020-01-28 00:07:43 -08:00
parent 352c1cb09a
commit d179c0c20d
2 changed files with 2 additions and 2 deletions

View File

@ -305,7 +305,7 @@ class Rack extends traits.PowerAcceptor with traits.Hub with traits.PowerBalance
super.onRedstoneInputChanged(args)
components.collect {
case Some(mountable: RackMountable) if mountable.node != null =>
val toLocalArgs = RedstoneChangedEventArgs(toLocal(args.side), args.oldValue, args.newValue)
val toLocalArgs = RedstoneChangedEventArgs(toLocal(args.side), args.oldValue, args.newValue, args.color)
mountable.node.sendToNeighbors("redstone.changed", toLocalArgs)
}
}

View File

@ -205,7 +205,7 @@ trait Computer extends Environment with ComponentInventory with Rotatable with B
override protected def onRedstoneInputChanged(args: RedstoneChangedEventArgs) {
super.onRedstoneInputChanged(args)
val toLocalArgs = RedstoneChangedEventArgs(toLocal(args.side), args.oldValue, args.newValue)
val toLocalArgs = RedstoneChangedEventArgs(toLocal(args.side), args.oldValue, args.newValue, args.color)
machine.node.sendToNeighbors("redstone.changed", toLocalArgs)
}