Fabric Language Kotlin

Fabric Language Kotlin

32M Downloads

All Java classes error

JawboTau opened this issue ยท 0 comments

commented

In IntelliJ, no errors are shown; but when I try to build and run the Minecraft Client, every Java class errors.

C:\Users\jaw\IdeaProjects\TestMod\src\main\java\com\github\jawbotau\testmod\config\EndMixin.java:3: error: cannot find symbol
import com.github.jawbotau.testmod.TestModInitializer;
  symbol:   class TestModInitializer
  location: package com.github.jawbotau.testmod

The same thing happens for the other 3 Java classes. 2 are owo-lib based, and the other is another mixin.
My initializer is:

object Manhunt : ModInitializer {

    override fun onInitialize() {
        ModItems.register()
        ModEnchantments.register()
    }
}

My entrypoint:

"entrypoints": {
  "main": [
    {
      "adapter": "kotlin",
      "value": "com.github.jawbotau.testmod.TestModInitializer"
    }
  ]
},

What is causing this, and how can I fix this?