-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40e63b4
commit b21699e
Showing
17 changed files
with
201 additions
and
229 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
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,16 +1,13 @@ | ||
org.gradle.jvmargs=-Xmx2G | ||
|
||
# Fabric (https://fabricmc.net/versions.html) | ||
minecraft_version=1.19.3 | ||
yarn_version=1.19.3+build.3 | ||
loader_version=0.14.11 | ||
# Fabric (https://fabricmc.net/develop/) | ||
minecraft_version=1.20.2 | ||
yarn_version=1.20.2+build.4 | ||
loader_version=0.14.23 | ||
|
||
# Mod Properties | ||
mod_version=0.1 | ||
maven_group=dummy.package | ||
maven_group=tanuki.package | ||
archives_base_name=tanuki-addon | ||
|
||
# Dependency Versions | ||
|
||
# Meteor (https://maven.meteordev.org/) | ||
meteor_version=0.5.2-SNAPSHOT | ||
meteor_version=0.5.5 |
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,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
12 changes: 5 additions & 7 deletions
12
src/main/java/anticope/tanuki/mixin/ClientPlayerEntityMixin.java
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,21 +1,19 @@ | ||
package anticope.tanuki.mixin; | ||
|
||
import anticope.tanuki.events.PushOutOfBlockEvent; | ||
import meteordevelopment.meteorclient.MeteorClient; | ||
import net.minecraft.client.network.ClientPlayerEntity; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
|
||
import net.minecraft.client.network.ClientPlayerEntity; | ||
|
||
import anticope.tanuki.events.PushOutOfBlockEvent; | ||
import meteordevelopment.meteorclient.MeteorClient; | ||
|
||
@Mixin(ClientPlayerEntity.class) | ||
public class ClientPlayerEntityMixin { | ||
@Inject(method = "pushOutOfBlocks", at = @At("HEAD"), cancellable = true) | ||
private void onPushOutOfBlocks(double x, double d, CallbackInfo info) { | ||
PushOutOfBlockEvent event = PushOutOfBlockEvent.get(x, d); | ||
MeteorClient.EVENT_BUS.post(event); | ||
if(event.isCancelled()) info.cancel(); | ||
if (event.isCancelled()) info.cancel(); | ||
} | ||
} |
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
6 changes: 2 additions & 4 deletions
6
src/main/java/anticope/tanuki/mixin/meteor/CrystalAuraAccessor.java
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
Oops, something went wrong.