1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-25 19:17:45 +00:00

fix aethernet escape

This commit is contained in:
collett 2020-02-08 00:41:58 +09:00
parent f3f38c4682
commit 5d5de5e451

View file

@ -33,7 +33,7 @@ public:
{ {
player.playScene( eventId, 2, 0, [this]( Entity::Player& player, const Event::SceneResult& result ) player.playScene( eventId, 2, 0, [this]( Entity::Player& player, const Event::SceneResult& result )
{ {
if( result.param1 == 256 ) if( result.param1 == 256 && result.param2 != 0 )
{ {
player.teleport( result.param2, 2 ); player.teleport( result.param2, 2 );
} }
@ -69,7 +69,7 @@ public:
} }
else if( result.param1 == 512 ) // aethernet access else if( result.param1 == 512 ) // aethernet access
{ {
if( result.param2 == 4 ) if( result.param2 == 4 && result.param3 != 0 )
{ {
player.teleport( result.param3, 2 ); player.teleport( result.param3, 2 );
} }