Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
fix osama nonesense
Browse files Browse the repository at this point in the history
  • Loading branch information
TomJuri committed May 2, 2024
1 parent be5e64a commit 4b5e913
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ loom {
launchConfigs {
getByName("client") {
arg("--tweakClass", "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker")
property("devauth.enabled", "true")
property("devauth.enabled", "false")
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/dev/macrohq/swiftslayer/SwiftSlayer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ object SwiftSlayer {


// New Structure
FeatureManager.getInstance().loadFeatures().forEach(SwiftEventBus::register)
//FeatureManager.getInstance().loadFeatures().forEach(SwiftEventBus::register)
SwiftEventBus.register(AutoRotation)
SwiftEventBus.register(GameEventHandler(this))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import dev.macrohq.swiftslayer.util.Logger
import dev.macrohq.swiftslayer.util.player
import me.kbrewster.eventbus.Subscribe
import net.minecraftforge.client.event.RenderGameOverlayEvent
import net.minecraftforge.client.event.RenderWorldLastEvent

object AutoRotation: AbstractFeature() {
override val featureName: String = "AutoRotation"
Expand Down Expand Up @@ -88,8 +89,7 @@ object AutoRotation: AbstractFeature() {
}

@Subscribe
fun onRenderOverlay(event: RenderGameOverlayEvent) {
Logger.info("rotation onRender")
fun onRenderOverlay(event: RenderWorldLastEvent) {
if(!this.canEnable()) return

if (this.endTime >= System.currentTimeMillis()) {
Expand Down

0 comments on commit 4b5e913

Please sign in to comment.