blob: 0a1eb87bb46aaccd89edb4e09f72bcbf3bc7c887 [file] [log] [blame] [raw]
package li.cil.oc.server.component
import li.cil.oc.api.network.Visibility
import li.cil.oc.{Config, api}
class PowerSupply extends ManagedComponent {
val node = api.Network.newNode(this, Visibility.Network).
withConnector(Config.bufferPowerSupply).
create()
override def update() {
super.update()
node.changeBuffer(-Config.powerSupplyCost)
}
}