mirror of https://github.com/kami-blue/client
antihunger and elytraflight compatibility
This commit is contained in:
parent
61b9da5977
commit
02be9df565
|
@ -25,9 +25,8 @@ public class AntiHunger extends Module {
|
|||
|
||||
@EventHandler
|
||||
public Listener<PacketEvent.Send> packetListener = new Listener<>(event -> {
|
||||
if (MODULE_MANAGER.getModule(ElytraFlight.class).isEnabled() && cancelMovementState.getValue()) {
|
||||
sendChatMessage(getChatName() + "ElytraFlight is not compatible with the 'Cancel Movement State' option, disabling");
|
||||
disable();
|
||||
if (MODULE_MANAGER.getModule(ElytraFlight.class).isEnabled()) {
|
||||
return;
|
||||
}
|
||||
if (event.getPacket() instanceof CPacketEntityAction) {
|
||||
final CPacketEntityAction packet = (CPacketEntityAction) event.getPacket();
|
||||
|
|
Loading…
Reference in New Issue