Skip to content

Commit

Permalink
Update other stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Avanatiker committed Aug 8, 2022
1 parent f9fad7f commit 57ec7cb
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Change wrapper permissions
run: chmod +x ./gradlew

Expand Down
33 changes: 27 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,23 @@ group project.modGroup

buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
maven { url = 'https://maven.minecraftforge.net/' }
maven { url = 'https://repo.spongepowered.org/maven/' }
}

dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:5.+'
classpath 'net.minecraftforge.gradle:ForgeGradle:4.+'
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.github.jengelman.gradle.plugins:shadow:6.1.0'
}
}

apply plugin: 'idea'
apply plugin: 'kotlin'
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'com.github.johnrengelman.shadow'

compileJava {
sourceCompatibility = targetCompatibility = '1.8'
Expand Down Expand Up @@ -70,7 +72,7 @@ dependencies {
// Online maven dependency coming soon
implementation files("lib/lambda-3.2-api.jar")

implementation('org.spongepowered:mixin:0.8.3') {
implementation('org.spongepowered:mixin:0.8.5') {
exclude module: 'commons-io'
exclude module: 'gson'
exclude module: 'guava'
Expand All @@ -79,7 +81,7 @@ dependencies {
}

// Hacky way to get mixin work
annotationProcessor('org.spongepowered:mixin:0.8.3:processor') {
annotationProcessor('org.spongepowered:mixin:0.8.5:processor') {
exclude module: 'gson'
}

Expand Down Expand Up @@ -144,4 +146,23 @@ test {
useJUnitPlatform()
}

jar.finalizedBy('reobfJar')
jar.finalizedBy('reobfJar')

shadowJar {
archiveClassifier.set('')
configurations = []
relocate 'kotlin', 'com.lambda.shadow.kotlin'
relocate 'kotlinx', 'com.lambda.shadow.kotlinx'
finalizedBy 'reobfShadowJar'
}

reobf {
shadowJar {}
jar {
enabled = false
}
}

artifacts {
shadowJar
}
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.parallel=true

modGroup=dev.toxicaven
modVersion=2.1
modVersion=2.2

minecraftVersion=1.12.2
forgeVersion=14.23.5.2860
mappingsChannel=stable
mappingsVersion=39-1.12

kotlinVersion=1.6.10
kotlinxCoroutinesVersion=1.6.0
kotlinVersion=1.7.10
kotlinxCoroutinesVersion=1.6.4
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions src/main/kotlin/dev/toxicaven/modules/AutoShulkerDupe.kt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ internal object AutoShulkerDupe: PluginModule(
// Drop the shulker
playerController.windowClick(0, slotShulk + 36, 0, ClickType.THROW, player)
if (player.isSneaking) player.connection.sendPacket(CPacketEntityAction(player, CPacketEntityAction.Action.STOP_SNEAKING))
// Right Click the wb
// Right-Click the wb
wbPos?.let {
playerController.processRightClickBlock(player, world, it, EnumFacing.UP, Vec3d(it), EnumHand.MAIN_HAND)
}
Expand Down Expand Up @@ -140,7 +140,7 @@ internal object AutoShulkerDupe: PluginModule(
}
i++
}
// In case of error and it has not found a shulker
// In case of error, and it has not found a shulker
if (tickPutItem++ > maxStackWait) {
stage = 0
player.closeScreen()
Expand Down

0 comments on commit 57ec7cb

Please sign in to comment.