-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add new logic * add screen for general options * screen logic is weird af * it works ... somehow * cleanup workflows * finish ui of custom config screen * screen finish - no to porting * remove onJump and onHotbarSwitch * fix some bugs * port and drop 1.20.1 support * add german translations * update readme and changelog
- Loading branch information
Showing
37 changed files
with
1,311 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Used when a commit is pushed to the repository | ||
# This makes use of caching for faster builds and uploads the resulting artifacts | ||
name: build-commit | ||
|
||
on: | ||
|
@@ -43,14 +41,4 @@ jobs: | |
command: ./gradlew buildAllVersions --stacktrace | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: versions/**/build/libs/*.jar | ||
|
||
modrinth-description: | ||
runs-on: ubuntu-latest | ||
name: Sync Modrinth description | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: funnyboy-roks/[email protected] | ||
with: | ||
auth-token: ${{ secrets.MODRINTH_API_KEY }} | ||
slug: 'autodrop' | ||
path: versions/**/build/libs/*.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: sync-readme | ||
|
||
on: | ||
push: | ||
paths: | ||
- "README.md" | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
modrinth-description: | ||
runs-on: ubuntu-latest | ||
name: Sync Modrinth description | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: funnyboy-roks/[email protected] | ||
with: | ||
auth-token: ${{ secrets.MODRINTH_API_KEY }} | ||
slug: 'autodrop' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,14 +32,4 @@ jobs: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
DISCORD_ROLE_ID: ${{ secrets.DISCORD_ROLE_ID }} | ||
NYON_USERNAME: ${{ secrets.NYON_USERNAME }} | ||
NYON_PASSWORD: ${{ secrets.NYON_PASSWORD }} | ||
|
||
modrinth-description: | ||
runs-on: ubuntu-latest | ||
name: Sync Modrinth description | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: funnyboy-roks/[email protected] | ||
with: | ||
auth-token: ${{ secrets.MODRINTH_API_KEY }} | ||
slug: 'autodrop' | ||
NYON_PASSWORD: ${{ secrets.NYON_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.gradle | ||
build/ | ||
.idea/ | ||
run/ | ||
run/ | ||
.kotlin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
- fix config screen on 1.20.6 | ||
- add new ui for configuring the archives | ||
- now support nbt/component filters and filter for amounts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package dev.nyon.autodrop.mixins; | ||
|
||
import com.llamalad7.mixinextras.injector.wrapoperation.Operation; | ||
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation; | ||
import dev.nyon.autodrop.AutoDrop; | ||
import dev.nyon.autodrop.config.ConfigHandlerKt; | ||
import net.minecraft.world.entity.Pose; | ||
import net.minecraft.world.entity.player.Player; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
|
||
@Mixin(Player.class) | ||
public class PlayerMixin { | ||
|
||
@WrapOperation( | ||
method = "updatePlayerPose", | ||
at = @At( | ||
value = "INVOKE", | ||
target = "Lnet/minecraft/world/entity/player/Player;setPose(Lnet/minecraft/world/entity/Pose;)V" | ||
) | ||
) | ||
private void invokeOnCrouch( | ||
Player instance, | ||
Pose pose, | ||
Operation<Void> original | ||
) { | ||
if (ConfigHandlerKt.getConfig() | ||
.getTriggerConfig() | ||
.getOnSneak() && pose == Pose.CROUCHING) AutoDrop.INSTANCE.invokeAutodrop(); | ||
original.call(instance, pose); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.