mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-22 11:52:38 -04:00
fixed bundled redstone output resetting after loading
This commit is contained in:
parent
8475597838
commit
92c9a46d8c
@ -29,7 +29,7 @@ trait BundledRedstoneAware extends RedstoneAware with IBundledEmitter with IBund
|
||||
|
||||
override def isOutputEnabled_=(value: Boolean) = {
|
||||
if (value != isOutputEnabled) {
|
||||
if (!isOutputEnabled) {
|
||||
if (!value) {
|
||||
for (i <- 0 until _bundledOutput.length) {
|
||||
for (j <- 0 until _bundledOutput(i).length) {
|
||||
_bundledOutput(i)(j) = 0
|
||||
|
@ -31,7 +31,7 @@ trait RedstoneAware extends RotationAware with network.Environment with Persista
|
||||
def isOutputEnabled_=(value: Boolean) = {
|
||||
if (value != isOutputEnabled) {
|
||||
_isOutputEnabled = value
|
||||
if (!isOutputEnabled) {
|
||||
if (!value) {
|
||||
for (i <- 0 until _output.length) {
|
||||
_output(i) = 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user