Update scene.ts

This commit is contained in:
tamilpp25 2022-08-06 15:25:16 +05:30
parent 5c6ae768b8
commit 1d5d7c1f40

View File

@ -37,7 +37,7 @@ export default async function handle(command: Command) {
const lineup = await Interface.target.player.getLineup(); const lineup = await Interface.target.player.getLineup();
const curAvatarEntity = new ActorEntity(Interface.target.player.scene, lineup.leaderSlot, posData.pos); const curAvatarEntity = new ActorEntity(Interface.target.player.scene, lineup.leaderSlot, posData.pos);
const allowedScenes = ['Train','Town','Maze'] const allowedScenes = ['Train','Town','Maze'] //Scenes that won't break when you relog
// Update scene information on player. // Update scene information on player.
if(allowedScenes.includes(planeData.PlaneType)){ if(allowedScenes.includes(planeData.PlaneType)){
Interface.target.player.db.posData.planeID = planeData.PlaneID; Interface.target.player.db.posData.planeID = planeData.PlaneID;