fix elytrafly crash asaaasasas
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m16s

This commit is contained in:
Daniella / Tove 2024-06-25 12:41:26 +02:00
parent 9fe88a6440
commit 26f81ed71e
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -121,7 +121,7 @@ public class ElytraFly extends Feature {
@Override
public void onDisable() {
init = false;
if(stopOnDisable) {
if(stopOnDisable && !notIngame()) {
if(stopWithPacket) {
mc.player.connection.sendPacket(new CPacketPlayer.Position(mc.player.posX, mc.player.posY, mc.player.posZ, true));
mc.player.connection.sendPacket(new CPacketEntityAction(mc.player, CPacketEntityAction.Action.START_FALL_FLYING));