Posted 19 October 2015 - 06:00 PM
Version:
1.74, tested without any other mods
Description:
Attempting to use colors.subtract returned the original value, causing the redstone program to be unable to turn off a colored cable
Expected result:
colors.subtract would return the value after "subtracting" the color.
Reproduction steps:
Type the following command into a computer. Notice it returns 13 (the combination of the colors) instead of the expected 9 (the combination minus magenta)
Notes:
I am unsure if the issue is caused by the bit32 API not working right or by colors.subtract having an issue in its coding, as I don't really understand what bit32 is doing at this time.
1.74, tested without any other mods
Description:
Attempting to use colors.subtract returned the original value, causing the redstone program to be unable to turn off a colored cable
Expected result:
colors.subtract would return the value after "subtracting" the color.
Reproduction steps:
Type the following command into a computer. Notice it returns 13 (the combination of the colors) instead of the expected 9 (the combination minus magenta)
print(colors.subtract(colors.combine(colors.white, colors.magenta, colours.lightBlue), colors.magenta))
Notes:
I am unsure if the issue is caused by the bit32 API not working right or by colors.subtract having an issue in its coding, as I don't really understand what bit32 is doing at this time.
Edited on 19 October 2015 - 04:01 PM