Player: fixed player can fly after respawn (#4388)

This commit is contained in:
alvin0319 2021-08-21 06:51:36 +09:00 committed by GitHub
parent e43d39c0bc
commit 34a7405820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2124,6 +2124,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
$this->setSprinting(false);
$this->setSneaking(false);
$this->setFlying(false);
$this->extinguish();
$this->setAirSupplyTicks($this->getMaxAirSupplyTicks());