Make the camera much faster

This commit is contained in:
Astatin3
2024-04-07 17:31:36 -06:00
parent 3365a2ce99
commit bf64f8f6d1
6 changed files with 261 additions and 305 deletions
@@ -37,12 +37,7 @@ public final class fileEditor {
public static char byteToChar(int num){
if(num < 0 || num > 255){
throw new BufferOverflowException();
}
byte[] bytes = new byte[1];
bytes[0] = (byte) num;
return new String(bytes, Charset.defaultCharset()).charAt(0);
return new String(toBytes(num, 1), StandardCharsets.UTF_8).charAt(0);
}