Skip to content

Commit

Permalink
fix: REI crash
Browse files Browse the repository at this point in the history
  • Loading branch information
nea89o committed Nov 11, 2024
1 parent 85eac70 commit 67f5994
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ fun createIsolatedSourceSet(name: String, path: String = "compat/$name", isEnabl
tasks.shadowJar {
from(ss.output)
}
// TODO: figure out why inheritances are not being respected by tiny kotlin names
tasks.remapJar {
classpath.from(configurations.getByName(ss.compileClasspathConfigurationName))
}
collectTranslations {
this.classes.from(sourceSets.main.get().kotlin.classesDirectory)
}
Expand Down Expand Up @@ -373,7 +377,6 @@ tasks.shadowJar {
}

tasks.remapJar {
// injectAccessWidener.set(true)
inputFile.set(tasks.shadowJar.flatMap { it.archiveFile })
dependsOn(tasks.shadowJar)
archiveClassifier.set("")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ import me.shedaniel.math.Point
import me.shedaniel.math.Rectangle
import me.shedaniel.rei.api.client.gui.widgets.WidgetWithBounds
import net.minecraft.client.gui.DrawContext
import net.minecraft.client.gui.Drawable
import net.minecraft.client.gui.Element
import net.minecraft.client.gui.ParentElement
import net.minecraft.entity.LivingEntity
import moe.nea.firmament.gui.entity.EntityRenderer


class EntityWidget(val entity: LivingEntity, val point: Point) : WidgetWithBounds() {
override fun children(): List<Element> {
return emptyList()
Expand Down

0 comments on commit 67f5994

Please sign in to comment.