mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-09 21:24:53 +00:00
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
This commit is contained in:
parent
d04da9b1d8
commit
4caa2c7690
@ -894,6 +894,12 @@ class NetworkSession{
|
|||||||
[
|
[
|
||||||
//TODO: dynamic flying speed! FINALLY!!!!!!!!!!!!!!!!!
|
//TODO: dynamic flying speed! FINALLY!!!!!!!!!!!!!!!!!
|
||||||
new AbilitiesLayer(AbilitiesLayer::LAYER_BASE, $boolAbilities, 0.05, 0.1),
|
new AbilitiesLayer(AbilitiesLayer::LAYER_BASE, $boolAbilities, 0.05, 0.1),
|
||||||
|
|
||||||
|
//TODO: HACK! In 1.19.80, the client starts falling in our faux spectator mode when it clips into a
|
||||||
|
//block. I have no idea why this works, since we don't actually use the real spectator mode.
|
||||||
|
new AbilitiesLayer(AbilitiesLayer::LAYER_SPECTATOR, [
|
||||||
|
AbilitiesLayer::ABILITY_FLYING => true,
|
||||||
|
], null, null)
|
||||||
]
|
]
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user