diff --git a/common/src/main/kotlin/dev/lasm/betterp2p/client/RenderBlockOutline.kt b/common/src/main/kotlin/dev/lasm/betterp2p/client/RenderBlockOutline.kt index f8a4a32..8099746 100644 --- a/common/src/main/kotlin/dev/lasm/betterp2p/client/RenderBlockOutline.kt +++ b/common/src/main/kotlin/dev/lasm/betterp2p/client/RenderBlockOutline.kt @@ -8,6 +8,7 @@ import dev.lasm.betterp2p.client.ClientCache.positions import dev.lasm.betterp2p.client.ClientCache.selectedFacing import dev.lasm.betterp2p.client.ClientCache.selectedPosition import dev.lasm.betterp2p.item.ItemAdvancedMemoryCard +import java.util.* import net.minecraft.client.Camera import net.minecraft.client.renderer.MultiBufferSource import net.minecraft.client.renderer.RenderStateShard @@ -18,7 +19,6 @@ import net.minecraft.world.entity.player.Player import net.minecraft.world.phys.AABB import net.minecraft.world.phys.shapes.Shapes import org.lwjgl.opengl.GL11 -import java.util.* object RenderBlockOutline { @JvmStatic diff --git a/fabric/build.gradle b/fabric/build.gradle index d45ea65..71bea11 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -57,6 +57,7 @@ remapJar { injectAccessWidener = true input.set shadowJar.archiveFile dependsOn shadowJar + archiveClassifier.set('fabric') } sourcesJar { diff --git a/forge/build.gradle b/forge/build.gradle index d0b8376..68c6f2a 100644 --- a/forge/build.gradle +++ b/forge/build.gradle @@ -71,6 +71,7 @@ shadowJar { remapJar { input.set shadowJar.archiveFile dependsOn shadowJar + archiveClassifier.set('forge') } sourcesJar { diff --git a/forge/src/main/kotlin/dev/lasm/betterp2p/forge/BetterP2PForgeClient.kt b/forge/src/main/kotlin/dev/lasm/betterp2p/forge/BetterP2PForgeClient.kt index 3c72379..33688d8 100644 --- a/forge/src/main/kotlin/dev/lasm/betterp2p/forge/BetterP2PForgeClient.kt +++ b/forge/src/main/kotlin/dev/lasm/betterp2p/forge/BetterP2PForgeClient.kt @@ -18,7 +18,8 @@ object BetterP2PForgeClient { fun init() { BetterP2P.initClient() MinecraftForge.EVENT_BUS.addListener { context: RenderLevelStageEvent -> - if (context.stage != RenderLevelStageEvent.Stage.AFTER_BLOCK_ENTITIES) return@addListener + if (context.stage != RenderLevelStageEvent.Stage.AFTER_BLOCK_ENTITIES) + return@addListener val level: ClientLevel? = Minecraft.getInstance().level val poseStack: PoseStack = context.poseStack val buffers: MultiBufferSource? = Minecraft.getInstance().renderBuffers().bufferSource() diff --git a/gradle.properties b/gradle.properties index a100173..8a394be 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ minecraft_version=1.20.1 enabled_platforms=fabric,forge archives_base_name=betterp2p -mod_version=1.4.0 +mod_version=1.4.1 maven_group=dev.lasm.betterp2p architectury_version=9.1.12