Revert "add warning to nofall about elytras"

This reverts commit 184c6f93b7.
This commit is contained in:
Bella 2020-04-01 17:37:16 -04:00
parent 3844a95e18
commit c2fc65ec7f
No known key found for this signature in database
GPG Key ID: 815562EA23BFE344
1 changed files with 0 additions and 8 deletions

View File

@ -2,10 +2,8 @@ package me.zeroeightsix.kami.module.modules.player;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;
import me.zeroeightsix.kami.command.Command;
import me.zeroeightsix.kami.event.events.PacketEvent;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.module.modules.movement.ElytraFlight;
import me.zeroeightsix.kami.setting.Setting;
import me.zeroeightsix.kami.setting.Settings;
import me.zeroeightsix.kami.util.EntityUtil;
@ -15,8 +13,6 @@ import net.minecraft.util.EnumHand;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.util.math.Vec3d;
import static me.zeroeightsix.kami.KamiMod.MODULE_MANAGER;
/**
* Created by 086 on 19/11/2017.
* Updated by S-B99 on 05/03/20
@ -33,10 +29,6 @@ public class NoFall extends Module {
@EventHandler
public Listener<PacketEvent.Send> sendListener = new Listener<>(event -> {
if (MODULE_MANAGER.getModule(ElytraFlight.class).isEnabled() && fallMode.getValue().equals(FallMode.PACKET)) {
Command.sendChatMessage(getChatName() + "ElytraFlight is not compatible with the 'packet' mode, disabling");
disable();
}
if ((fallMode.getValue().equals(FallMode.PACKET)) && event.getPacket() instanceof CPacketPlayer) {
((CPacketPlayer) event.getPacket()).onGround = true;
}