prevent saving some scenes to db
as they cause invalid scene bug during login
This commit is contained in:
parent
e65a807f62
commit
5c6ae768b8
@ -37,10 +37,13 @@ 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']
|
||||||
// Update scene information on player.
|
// Update scene information on player.
|
||||||
Interface.target.player.db.posData.planeID = planeData.PlaneID;
|
if(allowedScenes.includes(planeData.PlaneType)){
|
||||||
Interface.target.player.db.posData.floorID = floorId
|
Interface.target.player.db.posData.planeID = planeData.PlaneID;
|
||||||
await Interface.target.player.save()
|
Interface.target.player.db.posData.floorID = floorId
|
||||||
|
await Interface.target.player.save()
|
||||||
|
}
|
||||||
|
|
||||||
//change scene for player
|
//change scene for player
|
||||||
Interface.target.send(GetCurSceneInfoScRsp, {
|
Interface.target.send(GetCurSceneInfoScRsp, {
|
||||||
|
Loading…
Reference in New Issue
Block a user