Call change environment when finishing teleport, for instances where teleportation occurred in water.

This commit is contained in:
Steve 2018-03-05 08:39:42 +00:00
parent f720d9457c
commit 7dff960e42
1 changed files with 1 additions and 0 deletions

View File

@ -966,6 +966,7 @@ static void handleTeleport(void)
addTeleportStars(self); addTeleportStars(self);
self->dx = self->dy = 0; self->dx = self->dy = 0;
self->environment = ENV_AIR; self->environment = ENV_AIR;
self->changeEnvironment();
playBattleSound(SND_TELEPORT, self->uniqueId % MAX_SND_CHANNELS, self->x, self->y); playBattleSound(SND_TELEPORT, self->uniqueId % MAX_SND_CHANNELS, self->x, self->y);
} }
} }