Support translatable config options in server-only compilation
haykam821 opened this issue ยท 4 comments
When setting serverOnlyMinecraftJar()
with Loom 0.11+, classes implementing Translatable
fail to compile:
./common/src/main/java/io/github/haykam821/collectater/config/ParasiteRenderMode.java:5: error: cannot access ParentElement
public enum ParasiteRenderMode implements Translatable {
^
class file for net.minecraft.client.gui.ParentElement not found
warning: unknown enum constant Env.CLIENT
reason: class file for com.demonwav.mcdev.annotations.Env not found
./common/src/main/java/io/github/haykam821/collectater/config/ParasiteRenderMode.java:18: error: method does not override or implement a method from a supertype
@Override
^
@Mixin(value = ParasiteRenderMode.class, remap = false)
public class ParasiteRenderModeMixin implements Translatable {
@Shadow
@Final
private String key;
@Override
public String getKey() {
return this.key;
}
}