Skip to content

Instantly share code, notes, and snippets.

@bongtrop
Last active September 2, 2022 09:17
Show Gist options
  • Save bongtrop/a41b41ded479ff014d15bf75d610af35 to your computer and use it in GitHub Desktop.
Save bongtrop/a41b41ded479ff014d15bf75d610af35 to your computer and use it in GitHub Desktop.
Get rid of annoying Meeting View for All of Gather Town
engineOnEvent=game.engine.onevent;
game.engine.onevent = (e) => {
let good = true;
if (e.event && e.event['$case'] == "mapSetNooks") {
for (const nookId in e.event.mapSetNooks.nooks) {
const nook = e.event.mapSetNooks.nooks[nookId];
if (nook['isInMeeting']) {
game.setMapNooks(e.event.mapSetNooks.mapId, {[nookId]: {'isInMeeting': false}});
good = false;
console.log('not good');
}
}
}
if(good) engineOnEvent(e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment