Skip to content

Commit

Permalink
Update B79
Browse files Browse the repository at this point in the history
  • Loading branch information
Aspw-w committed Jan 6, 2024
1 parent eae1f72 commit e5053bb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/aspw/client/Client.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ import net.minecraft.util.ResourceLocation
object Client {

// Client information
const val isInDevelopment = true
const val isInDevelopment = false

const val CLIENT_BEST = "NightX"
const val CLIENT_FOLDER = "NightWare"
const val CLIENT_VERSION = "Beta B79"
const val CLIENT_VERSION = "Release B79"
const val CLIENT_CREATOR = "As_pw"
const val CLIENT_WEBSITE = "https://aspw-w.github.io/NightX-Web"
const val CLIENT_ANNOUNCEMENT = "$CLIENT_WEBSITE/database/announcement.txt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ class KillAura : Module() {
arrayOf(
"Vanilla",
"ReBlock",
"Hypixel",
"Verus",
"1.9+",
"Fake",
Expand Down Expand Up @@ -353,16 +354,17 @@ class KillAura : Module() {
@EventTarget
fun onPacket(event: PacketEvent) {
val packet = event.packet
if (!autoBlockModeValue.get().equals("verus", true)) return
if (blockingStatus
&& ((packet is C07PacketPlayerDigging
&& packet.status == C07PacketPlayerDigging.Action.RELEASE_USE_ITEM)
|| packet is C08PacketPlayerBlockPlacement)
)
event.cancelEvent()
if (autoBlockModeValue.get().equals("verus", true) || autoBlockModeValue.get().equals("hypixel", true)) {
if (blockingStatus
&& ((packet is C07PacketPlayerDigging
&& packet.status == C07PacketPlayerDigging.Action.RELEASE_USE_ITEM)
|| packet is C08PacketPlayerBlockPlacement)
)
event.cancelEvent()

if (packet is C09PacketHeldItemChange)
blockingStatus = false
if (packet is C09PacketHeldItemChange)
blockingStatus = false
}
}

/**
Expand Down Expand Up @@ -996,7 +998,7 @@ class KillAura : Module() {
}

when (autoBlockModeValue.get().lowercase()) {
"reblock", "vanilla", "verus" -> {
"reblock", "vanilla", "verus", "hypixel" -> {
mc.netHandler.addToSendQueue(C08PacketPlayerBlockPlacement(mc.thePlayer.inventory.getCurrentItem()))
blockingStatus = true
}
Expand Down

0 comments on commit e5053bb

Please sign in to comment.