Skip to content

Commit

Permalink
The hallucinations are real
Browse files Browse the repository at this point in the history
  • Loading branch information
odtheking committed Apr 30, 2024
1 parent 21542b6 commit 81cd4cc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@ object EtherWarpHelper : Module(
if (render && mc.thePlayer.isSneaking && mc.thePlayer.heldItem.extraAttributes?.getBoolean("ethermerge") == true && (etherPos.succeeded || renderFail)) {
val pos = etherPos.pos ?: return
val color = if (etherPos.succeeded) renderColor else wrongColor
val aabb = getBlockAt(pos).getSelectedBoundingBox(mc.theWorld, pos) ?: return
val aabb = getBlockAt(pos).getSelectedBoundingBox(mc.theWorld, pos).expand(0.002, 0.002, 0.002) ?: return

Renderer.drawBox(aabb, color, outlineWidth = thickness, depth = phase, outlineAlpha = if (style == 0) 0 else color.alpha, fillAlpha = if (style == 1) 0 else color.alpha)
}
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ object EtherWarpHelper : Module(
val pos = etherPos.pos ?: return
val color = if (etherPos.succeeded) renderColor else wrongColor
getBlockAt(pos).setBlockBoundsBasedOnState(mc.theWorld, pos)
val aabb = getBlockAt(pos).getSelectedBoundingBox(mc.theWorld, pos) ?: return
val aabb = getBlockAt(pos).getSelectedBoundingBox(mc.theWorld, pos).expand(0.002, 0.002, 0.002) ?: return

Renderer.drawBox(aabb, color, outlineWidth = thickness, depth = phase, outlineAlpha = if (style == 0) 0 else color.alpha, fillAlpha = if (style == 1) 0 else color.alpha)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import me.odinmain.utils.skyblock.getChatBreak
import me.odinmain.utils.skyblock.modMessage
import net.minecraft.event.ClickEvent
import net.minecraft.util.ChatComponentText
import net.minecraftforge.event.world.WorldEvent
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import org.lwjgl.input.Keyboard

@AlwaysActive
Expand Down Expand Up @@ -99,11 +101,16 @@ object ClickGUIModule: Module(
""".trimIndent(), false)
}
resetPositions()
}

@Suppress("OPT_IN_USAGE")
GlobalScope.launch {
sendDataToServer(body = """{"username": "${mc.thePlayer.name}", "version": "${if (OdinMain.isLegitVersion) "legit" else "cheater"} ${OdinMain.VERSION}"}""")
}
private var hasSent = false

@OptIn(DelicateCoroutinesApi::class)
@SubscribeEvent
fun onWorldLoad(event: WorldEvent.Load) = GlobalScope.launch {
if (hasSent) return@launch
hasSent = true
sendDataToServer(body = """{"username": "${mc.thePlayer.name}", "version": "${if (OdinMain.isLegitVersion) "legit" else "cheater"} ${OdinMain.VERSION}"}""")
}

fun resetPositions() {
Expand Down

0 comments on commit 81cd4cc

Please sign in to comment.