diff --git a/tools/src/mindustry/tools/Generators.java b/tools/src/mindustry/tools/Generators.java index fbd79b58a3..f6e3a38a31 100644 --- a/tools/src/mindustry/tools/Generators.java +++ b/tools/src/mindustry/tools/Generators.java @@ -206,7 +206,7 @@ public class Generators{ Pixmap result = new Pixmap(size, size); byte[][] mask = new byte[size][size]; - byte val = (byte)bi; + int val = (bi & 0xff) == 128 ? 128 : (byte)bi; //check each bit/direction for(int j = 0; j < 8; j++){ if((val & (1 << j)) != 0){