[PCCompat > Entities] Plugin: fix handlers not being binded to this correctly

This commit is contained in:
Ducko 2021-04-05 11:15:50 +01:00 committed by Keanu
parent 36f2c81c89
commit d075c67250
Signed by: keanucode
GPG key ID: A7431C0D513CA93B

View file

@ -57,8 +57,8 @@ export class Plugin {
get goosemodHandlers() {
return {
onImport: this.startPlugin,
onRemove: this.pluginWillUnload
onImport: this.startPlugin.bind(this),
onRemove: this.pluginWillUnload.bind(this)
};
}
}