Skip to content

Commit

Permalink
1.19.4 (#13)
Browse files Browse the repository at this point in the history
* 1.19.4

* Update gradle.yml

---------

Co-authored-by: Cloudburst <[email protected]>
  • Loading branch information
Hankung7183 and C10udburst authored May 5, 2023
1 parent c45ea02 commit c49c9fb
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest-1.19"
automatic_release_tag: "latest-1.19.4"
prerelease: false
title: "1.19 Build"
title: "1.19.4 Build"
files: |
./build/libs/*.jar
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.12-SNAPSHOT'
id 'fabric-loom' version '1.2-SNAPSHOT'
id 'maven-publish'
}

Expand All @@ -17,11 +17,11 @@ repositories {
dependencies {
// Minecraft
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_version}:v2"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Meteor
modImplementation "meteordevelopment:meteor-client:0.5.2-SNAPSHOT"
modImplementation "meteordevelopment:meteor-client:0.5.3-SNAPSHOT"
}

processResources {
Expand Down
9 changes: 4 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
org.gradle.jvmargs=-Xmx2G

# Fabric Properties
minecraft_version=1.19.3
yarn_version=1.19.3+build.3
loader_version=0.14.11

# Fabric Properties (https://fabricmc.net/versions.html)
minecraft_version=1.19.4
yarn_mappings=1.19.4+build.2
loader_version=0.14.19

# Mod Properties
mod_version = 0.6
Expand Down
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.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions src/main/java/widecat/meteorcrashaddon/CrashAddon.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import meteordevelopment.meteorclient.addons.GithubRepo;
import meteordevelopment.meteorclient.addons.MeteorAddon;
import meteordevelopment.meteorclient.systems.commands.Commands;
import meteordevelopment.meteorclient.commands.Commands;
import meteordevelopment.meteorclient.systems.modules.Category;
import meteordevelopment.meteorclient.systems.modules.Modules;

Expand Down Expand Up @@ -37,7 +37,7 @@ public void onInitialize() {
Modules.get().add(new PacketSpammer());
Modules.get().add(new SequenceCrash());

Commands.get().add(new CrashItemCommand());
Commands.add(new CrashItemCommand());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package widecat.meteorcrashaddon.commands;

import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import meteordevelopment.meteorclient.systems.commands.Command;
import meteordevelopment.meteorclient.commands.Command;
import net.minecraft.command.CommandSource;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
Expand All @@ -11,6 +11,7 @@
import net.minecraft.network.packet.c2s.play.CreativeInventoryActionC2SPacket;

import static com.mojang.brigadier.Command.SINGLE_SUCCESS;
import static meteordevelopment.meteorclient.MeteorClient.mc;

public class CrashItemCommand extends Command {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ private void onTick(TickEvent.Post event) {
case NoCom -> {
for (int i = 0; i < amount.get(); i++) {
Vec3d cpos = pickRandomPos();
mc.getNetworkHandler().sendPacket(new PlayerInteractBlockC2SPacket(Hand.MAIN_HAND, new BlockHitResult(cpos, Direction.DOWN, new BlockPos(cpos), false), 0));
mc.getNetworkHandler().sendPacket(new PlayerInteractBlockC2SPacket(Hand.MAIN_HAND, new BlockHitResult(cpos, Direction.DOWN, BlockPos.ofFloored(cpos), false), 0));
}
}
case OOB -> {
Vec3d oob = new Vec3d(Double.POSITIVE_INFINITY, 255, Double.NEGATIVE_INFINITY);
mc.getNetworkHandler().sendPacket(new PlayerInteractBlockC2SPacket(Hand.MAIN_HAND, new BlockHitResult(oob, Direction.DOWN, new BlockPos(oob), false), 0));
mc.getNetworkHandler().sendPacket(new PlayerInteractBlockC2SPacket(Hand.MAIN_HAND, new BlockHitResult(oob, Direction.DOWN, BlockPos.ofFloored(oob), false), 0));
}
case Item -> {
for (int i = 0; i < amount.get(); i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private void onTick(TickEvent.Post event) {
}
case Block -> {
Vec3d pos = new Vec3d(mc.player.getX(), mc.player.getY(), mc.player.getZ());
BlockHitResult bhr = new BlockHitResult(pos, Direction.DOWN, new BlockPos(pos), false);
BlockHitResult bhr = new BlockHitResult(pos, Direction.DOWN, BlockPos.ofFloored(pos), false);
for (int i = 0; i < amount.get(); i++) {
mc.getNetworkHandler().sendPacket(new PlayerInteractBlockC2SPacket(Hand.MAIN_HAND, bhr, -1));
}
Expand Down

0 comments on commit c49c9fb

Please sign in to comment.