Skip to content

README code examples incorrect #9

@IndigoPolecat

Description

@IndigoPolecat

I do not understand the issue very well but I do know the following change is what got my game to launch successfully with the mod API working.

The README states:

	configurations = listOf(shadowImpl)
    relocate("net.hypixel.modapi.tweaker", "my.modid.modapitweaker.HypixelModAPITweaker")
}

tasks.withType(org.gradle.jvm.tasks.Jar::class) {
	manifest.attributes.run {
		this["TweakClass"] = "my.modid.modapitweaker.HypixelModAPITweaker"
	}
}

The issue appears to be the relocation of the package, the change I made was:

relocate("net.hypixel.modapi.tweaker", "my.modid.modapitweaker")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions