fixed bundled redstone output resetting after loading

This commit is contained in:
Florian Nücke 2014-01-12 15:16:45 +01:00
parent 8475597838
commit 92c9a46d8c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
}