FabricMC / fabric-language-kotlin

Fabric language module for Kotlin.
Apache License 2.0
293 stars 33 forks source link

All Java classes error #105

Closed JawboTau closed 1 year ago

JawboTau commented 1 year ago

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?