Skip to content

Commit

Permalink
5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
qouteall committed Mar 19, 2023
1 parent cc56399 commit 2bc3883
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 21 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- uses: eskatos/gradle-command-action@v1
with:
gradle-version: 7.3
arguments: build

- name: Upload assets to GitHub
uses: AButler/[email protected]
with:
files: 'build/libs/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- uses: eskatos/gradle-command-action@v1
env:
MODRINTH: ${{ secrets.MODRINTH }}
with:
gradle-version: 7.3
arguments: build additionalCopy

- name: Upload assets to GitHub
uses: AButler/[email protected]
with:
files: 'build/to_upload/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,19 @@ jar {
}
}

afterEvaluate {
remapJar {
archiveFileName = "${archivesBaseName}-${project.mod_version}-mc${project.minecraft_version}-fabric.jar"
}
}

task additionalCopy(type: Copy) {
dependsOn(remapJar)
from file("${project.buildDir}/libs/$archivesBaseName-${version}-mc${project.minecraft_version}-fabric.jar")
into file("${project.buildDir}/to_upload")
rename { n -> "$archivesBaseName-${version}-mc${project.minecraft_version}-fabric.jar" }
}

// configure the maven publication
publishing {
publications {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import qouteall.q_misc_util.api.McRemoteProcedureCall;
import tk.meowmc.portalgun.PortalGunMod;

@Mixin(BlockManipulationClient.class)
@Mixin(value = BlockManipulationClient.class, remap = false)
public class MixinImmPtlBlockManipulationClient {

/**
Expand All @@ -21,7 +21,8 @@ public class MixinImmPtlBlockManipulationClient {
@Inject(
method = "myAttackBlock",
at = @At("HEAD"),
cancellable = true
cancellable = true,
remap = false
)
private static void onMyAttackBlock(CallbackInfoReturnable<Boolean> cir) {
ItemStack mainHandItem = Minecraft.getInstance().player.getMainHandItem();
Expand Down

0 comments on commit 2bc3883

Please sign in to comment.