fix respawning with packetfly on
All checks were successful
/ Build BaseBand (push) Successful in 2m33s

This commit is contained in:
Daniella / Tove 2024-10-05 05:50:56 +02:00
parent f8ad1c48eb
commit 0921db6c28
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -3,6 +3,7 @@ package de.com.baseband.client.feature.modules.movement;
import de.com.baseband.client.event.Listen; import de.com.baseband.client.event.Listen;
import de.com.baseband.client.event.events.MoveEvent; import de.com.baseband.client.event.events.MoveEvent;
import de.com.baseband.client.event.events.PacketEvent; import de.com.baseband.client.event.events.PacketEvent;
import de.com.baseband.client.event.events.PlayerDestroyEvent;
import de.com.baseband.client.feature.Feature; import de.com.baseband.client.feature.Feature;
import de.com.baseband.client.feature.category.Experimental; import de.com.baseband.client.feature.category.Experimental;
import de.com.baseband.client.feature.modules.render.HUD; import de.com.baseband.client.feature.modules.render.HUD;
@ -155,6 +156,11 @@ public class PacketFly extends Feature {
} }
} }
@Listen
public void onPlayerDestroy(PlayerDestroyEvent event) {
moving = false;
}
@Override @Override
public String toString() { public String toString() {
return "PacketFly"; return "PacketFly";