fix: broken rs lib

This commit is contained in:
Guillaume ARM 2024-05-28 01:05:40 +02:00
parent 46635141da
commit 7285c63b57

View File

@ -30,7 +30,7 @@ rs.createBundledOutput = function(side, initialColorState)
end end
_colorState = newColorState _colorState = newColorState
redstone.setBundledOutpout(side, newColorState) redstone.setBundledOutput(side, newColorState)
return true return true
end end
@ -44,13 +44,13 @@ rs.createBundledOutput = function(side, initialColorState)
bundledOutput.setOn = function(color) bundledOutput.setOn = function(color)
local colorState = getState() local colorState = getState()
local newColorState = color.combine(colorState, color) local newColorState = colors.combine(colorState, color)
return setState(newColorState) return setState(newColorState)
end end
bundledOutput.setOff = function(color) bundledOutput.setOff = function(color)
local colorState = getState() local colorState = getState()
local newColorState = color.subtract(colorState, color) local newColorState = colors.subtract(colorState, color)
return setState(newColorState) return setState(newColorState)
end end