Skip to content

Commit

Permalink
explicitly set archive classifier for each loader
Browse files Browse the repository at this point in the history
  • Loading branch information
LasmGratel committed May 21, 2024
1 parent 24a8f33 commit f6f25b4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ remapJar {
injectAccessWidener = true
input.set shadowJar.archiveFile
dependsOn shadowJar
archiveClassifier.set('fabric')
}

sourcesJar {
Expand Down
1 change: 1 addition & 0 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ shadowJar {
remapJar {
input.set shadowJar.archiveFile
dependsOn shadowJar
archiveClassifier.set('forge')
}

sourcesJar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6f25b4

Please sign in to comment.