1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-02 16:57:47 +00:00

Merge pull request #633 from collett8192/632

Fix #632.
This commit is contained in:
Adam 2020-02-08 10:32:30 +11:00 committed by GitHub
commit 29afcfe487

View file

@ -33,7 +33,7 @@ public:
{
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 );
}
@ -69,7 +69,7 @@ public:
}
else if( result.param1 == 512 ) // aethernet access
{
if( result.param2 == 4 )
if( result.param2 == 4 && result.param3 != 0 )
{
player.teleport( result.param3, 2 );
}