Skip to content

Commit

Permalink
Update VerusFixDisabler.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
C00LC0D35 authored Jan 4, 2024
1 parent 5f2bc29 commit f915a16
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ import net.minecraft.network.play.client.C03PacketPlayer
import net.minecraft.network.play.client.C08PacketPlayerBlockPlacement
import net.minecraft.network.play.client.C09PacketHeldItemChange
import net.minecraft.network.play.client.C0BPacketEntityAction
import net.minecraft.init.Blocks
import net.minecraft.item.ItemStack

class VerusFixDisabler : DisablerMode("VerusFix") {
private val omniSprint13EValue = BoolValue("${valuePrefix}OmniSprint", true)
private val scaffold14EValue = BoolValue("${valuePrefix}BlockPlace", true)
private val scaffold14EValue = BoolValue("${valuePrefix}RotationFix", true)
private val fly4IValue = BoolValue("${valuePrefix}fly4I", true)
private val motionYValue = BoolValue("${valuePrefix}MotionY", true)
var x = 0.0
var y = 0.0
var z = 0.0
Expand All @@ -21,6 +24,14 @@ class VerusFixDisabler : DisablerMode("VerusFix") {
var prevSlot = 0
private var jam = 0
private var packetCount = 0

override fun onUpdate(event: UpdateEvent) {
if (!motionYValue.get()) return
PacketUtils.sendPacketNoEvent(
C08PacketPlayerBlockPlacement(pos, 1,
ItemStack(Blocks.stone.getItem(mc.theWorld, pos)), 0.0F, 0.5F + Math.random().toFloat() * 0.44.toFloat(), 0.0F)
)
}

override fun onPacket(event: PacketEvent) {
val packet = event.packet
Expand Down

0 comments on commit f915a16

Please sign in to comment.