mirror of https://github.com/kami-blue/client
minor code cleanup
This commit is contained in:
parent
7a7820cebd
commit
1ca6c9f144
|
@ -43,7 +43,7 @@ public class MixinNetworkManager {
|
|||
|
||||
@Inject(method = "exceptionCaught", at = @At("HEAD"), cancellable = true)
|
||||
private void exceptionCaught(ChannelHandlerContext p_exceptionCaught_1_, Throwable p_exceptionCaught_2_, CallbackInfo info) {
|
||||
if (MODULE_MANAGER.isModuleEnabled(NoPacketKick.class)){
|
||||
if (MODULE_MANAGER.isModuleEnabled(NoPacketKick.class)) {
|
||||
Command.sendWarningMessage("[NoPacketKick] Caught exception - " + p_exceptionCaught_2_.toString());
|
||||
info.cancel();
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ public class AntiLevitation extends Module {
|
|||
|
||||
@Override
|
||||
public void onUpdate() {
|
||||
if (mc.player.isPotionActive(Potion.getPotionFromResourceLocation("levitation"))){
|
||||
if (mc.player.isPotionActive(Potion.getPotionFromResourceLocation("levitation"))) {
|
||||
mc.player.removeActivePotionEffect(Potion.getPotionFromResourceLocation("levitation"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue