minor code cleanup

This commit is contained in:
Bella 2020-04-12 15:06:04 -04:00
parent 7a7820cebd
commit 1ca6c9f144
No known key found for this signature in database
GPG Key ID: DBD4A6030080C8B3
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}

View File

@ -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"));
}
}