Fixed non-flipped color value being sent to clients in hologram.setPaletteColor(), leading to wrong display until reloading.

This commit is contained in:
Florian Nücke 2014-08-02 15:01:35 +02:00
parent ebad9911ed
commit d77da6698f

View File

@ -227,7 +227,7 @@ class Hologram(var tier: Int) extends traits.Environment with SidedEnvironment w
// Change byte order here to allow passing stored color to OpenGL "as-is" // Change byte order here to allow passing stored color to OpenGL "as-is"
// (as whole Int, i.e. 0xAABBGGRR, alpha is unused but present for alignment) // (as whole Int, i.e. 0xAABBGGRR, alpha is unused but present for alignment)
colors(index - 1) = convertColor(value) colors(index - 1) = convertColor(value)
ServerPacketSender.sendHologramColor(this, index - 1, value) ServerPacketSender.sendHologramColor(this, index - 1, colors(index - 1))
result(oldValue) result(oldValue)
} }