Skip to content

Commit 4caa2c7

Browse files
committed
NetworkSession: send FLYING flag on spectator ability layer
fixes #5722 I'm not very clear why this works. PM doesn't use real spectator mode yet (we're still using the faux spectator mode PM has had for years, because I haven't yet assessed how real spectator mode will affect stuff like block interactions), so this ability layer shouldn't have any effect. thank you @Alemiz112
1 parent d04da9b commit 4caa2c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/network/mcpe/NetworkSession.php

+6
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,12 @@ public function syncAbilities(Player $for) : void{
894894
[
895895
//TODO: dynamic flying speed! FINALLY!!!!!!!!!!!!!!!!!
896896
new AbilitiesLayer(AbilitiesLayer::LAYER_BASE, $boolAbilities, 0.05, 0.1),
897+
898+
//TODO: HACK! In 1.19.80, the client starts falling in our faux spectator mode when it clips into a
899+
//block. I have no idea why this works, since we don't actually use the real spectator mode.
900+
new AbilitiesLayer(AbilitiesLayer::LAYER_SPECTATOR, [
901+
AbilitiesLayer::ABILITY_FLYING => true,
902+
], null, null)
897903
]
898904
)));
899905
}

0 commit comments

Comments
 (0)