diff --git a/src/main/java/dan200/computercraft/shared/util/Palette.java b/src/main/java/dan200/computercraft/shared/util/Palette.java index bf4fc89f4..2f17f08e2 100644 --- a/src/main/java/dan200/computercraft/shared/util/Palette.java +++ b/src/main/java/dan200/computercraft/shared/util/Palette.java @@ -91,7 +91,7 @@ public class Palette { 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; } }