Uses the current player position rather than the starting one to position iframe

This commit is contained in:
Benedicte Quimbert 2021-10-29 12:01:07 +02:00
parent e39e341ab7
commit 516d756db1
4 changed files with 36 additions and 0 deletions

View file

@ -1360,6 +1360,14 @@ ${escapedMessage}
this.CurrentPlayer.removeOutlineColor();
this.connection?.emitPlayerOutlineColor(null);
});
iframeListener.registerAnswerer("getPlayerPosition", () => {
return {
x: this.CurrentPlayer.x,
y: this.CurrentPlayer.y,
};
});
}
private setPropertyLayer(