Fire a player init event on initialization.

This commit is contained in:
Kavin 2023-01-03 03:04:40 +00:00
parent ae675206f8
commit 5e700f80a3
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -471,6 +471,9 @@ export default {
this.updateMarkers(); this.updateMarkers();
const event = new Event("playerInit");
window.dispatchEvent(event);
const player = this.$ui.getControls().getPlayer(); const player = this.$ui.getControls().getPlayer();
this.$player = player; this.$player = player;