mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-19 05:32:55 +00:00
Fix incorrect palette serialisation
This commit is contained in:
parent
550ada2f9e
commit
1547ecbeb3
@ -91,7 +91,7 @@ public class Palette
|
|||||||
{
|
{
|
||||||
for( double[] colour : colours )
|
for( double[] colour : colours )
|
||||||
{
|
{
|
||||||
for( int i = 0; i < colour.length; i++ ) colour[i] = buffer.readByte() * 255;
|
for( int i = 0; i < colour.length; i++ ) colour[i] = (buffer.readByte() & 0xFF) / 255.0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user