Skip to content

Commit

Permalink
Grim Post ClickWindow Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XeContrast committed Nov 15, 2024
1 parent 42687b2 commit 3f6fbf2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ object Backtrack : Module() {
// Modern
private val style = ListValue("Style", arrayOf("Pulse", "Smooth"), "Smooth").displayable { mode.get() == "Modern" }

private val maxDistanceValue: FloatValue = object : FloatValue("MaxDistance", 3.0f, 0.0f,3.5f) {
private val maxDistance: FloatValue = object : FloatValue("MaxDistance", 3.0f, 0.0f,3.5f) {
}
private val maxDistance = maxDistanceValue
private val minDistance = object : FloatValue("MinDistance", 2.0f, 0.0f,3.0f) {
}
private val smart = BoolValue("Smart", true).displayable { mode.get() == "Modern" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,23 +200,16 @@ object Stealer : Module() {
for (i in 0 until rows) {
val slot = chest.inventorySlots.getSlot(i)
if (slot.hasStack) {
mc.playerController?.windowClick(
chest.inventorySlots.windowId,
i,
0,
2,
mc.thePlayer
mc.thePlayer.sendQueue.addToSendQueue(
C0EPacketClickWindow(
chest.inventorySlots.windowId,
i,
0,
1,
slot.stack,
1.toShort()
)
// mc.thePlayer.sendQueue.addToSendQueue(
// C0EPacketClickWindow(
// chest.inventorySlots.windowId,
// i,
// 0,
// 1,
// slot.stack,
// 1.toShort()
// )
// )
)
}
}
}
Expand Down

0 comments on commit 3f6fbf2

Please sign in to comment.