Skip to content

Commit ce3903a

Browse files
authored
fix single pixel addPixel packets not working properly
1 parent be201d6 commit ce3903a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structures/Game.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default class Game extends BaseStructure {
5454
public onSocketAddPixel(socket: WebSocket, { pixels, steamId, x, y, color }) {
5555
if (!socket.hasWriteAccess) return;
5656

57-
if (x && y && color) {
57+
if (x !== undefined && y !== undefined && color !== undefined) {
5858
const xy = y * this.dimensions[0] + x;
5959
pixels = { [xy]: color }
6060
}

0 commit comments

Comments
 (0)