Last active
September 2, 2022 09:17
-
-
Save bongtrop/a41b41ded479ff014d15bf75d610af35 to your computer and use it in GitHub Desktop.
Get rid of annoying Meeting View for All of Gather Town
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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