diff --git a/src/main/kotlin/com/lambda/client/command/commands/PacketCommand.kt b/src/main/kotlin/com/lambda/client/command/commands/PacketCommand.kt index 5bed6be8a..2575b555f 100644 --- a/src/main/kotlin/com/lambda/client/command/commands/PacketCommand.kt +++ b/src/main/kotlin/com/lambda/client/command/commands/PacketCommand.kt @@ -517,7 +517,7 @@ object PacketCommand : ClientCommand( } private fun SafeClientEvent.deployPacket(packet: Packet<*>, info: String) { - // bypasses packet cancel :trollepic: + @Suppress("NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS") connection.networkManager.sendPacket(packet, null) MessageSendHelper.sendChatMessage("Sent ${TextFormatting.GRAY}${packet.javaClass.name.split(".").lastOrNull()}${TextFormatting.DARK_RED} > ${TextFormatting.GRAY}$info") } diff --git a/src/main/kotlin/com/lambda/client/module/modules/player/Freecam.kt b/src/main/kotlin/com/lambda/client/module/modules/player/Freecam.kt index 0cc763aa6..e7fa02ae6 100644 --- a/src/main/kotlin/com/lambda/client/module/modules/player/Freecam.kt +++ b/src/main/kotlin/com/lambda/client/module/modules/player/Freecam.kt @@ -333,6 +333,7 @@ object Freecam : Module( override fun isInvisibleToPlayer(player: EntityPlayer) = true } + @Suppress("NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS") private class NoOpNetHandlerPlayerClient(realNetHandler: NetHandlerPlayClient) : NetHandlerPlayClient(mc, null, realNetHandler.networkManager, realNetHandler.gameProfile) { override fun sendPacket(packetIn: Packet<*>) { // no packets from freecam player, thanks diff --git a/src/main/kotlin/com/lambda/client/module/modules/render/Nametags.kt b/src/main/kotlin/com/lambda/client/module/modules/render/Nametags.kt index da3fe6386..b9f1a989a 100644 --- a/src/main/kotlin/com/lambda/client/module/modules/render/Nametags.kt +++ b/src/main/kotlin/com/lambda/client/module/modules/render/Nametags.kt @@ -441,6 +441,7 @@ object Nametags : Module( } ContentType.PING -> { if (entity is EntityOtherPlayerMP) { + @Suppress("UNNECESSARY_SAFE_CALL") connection.getPlayerInfo(entity.uniqueID)?.responseTime?.let { TextComponent.TextElement("${it}ms", pingColorGradient.get(it.toFloat()).apply { a = GuiColors.text.a }) }