diff --git a/src/common.js b/src/common.js index 42fb202..f8688be 100644 --- a/src/common.js +++ b/src/common.js @@ -1,14 +1,6 @@ export const config = { serverAddresses: [ - "wss://computernewb.com/collab-vm/vm0", - "wss://computernewb.com/collab-vm/vm1", - "wss://computernewb.com/collab-vm/vm2", - "wss://computernewb.com/collab-vm/vm3", - "wss://computernewb.com/collab-vm/vm4", - "wss://computernewb.com/collab-vm/vm5", - "wss://computernewb.com/collab-vm/vm6", - "wss://computernewb.com/collab-vm/vm7", - "wss://computernewb.com/collab-vm/vm8", + "wss://vm.obama.wtf/" ], chatSound: "https://computernewb.com/collab-vm/notify.ogg" } \ No newline at end of file diff --git a/src/index.js b/src/index.js index c99c16d..62fc61a 100644 --- a/src/index.js +++ b/src/index.js @@ -402,7 +402,8 @@ class CollabVMClient { } } mouse(x, y, mask) { - this.socket.send(guacutils.encode(["mouse", x, y, mask])); + if(turn == 0) + this.socket.send(guacutils.encode(["mouse", x, y, mask])); } key(keysym, down) { this.socket.send(guacutils.encode(["key", keysym, down ? "1" : "0"])); @@ -452,6 +453,8 @@ class CollabVMClient { return mask; } mouseevent(e, down) { + if(turn != 0) return; + if (down !== undefined) {switch (e.button) { case 0: this.mousestate.left = down;