Skip to content

Commit

Permalink
Showing 8 changed files with 18 additions and 22 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -123,8 +123,9 @@ This will return the lowest block placed with AutoMountain until AutoLavacast is
- NewerNewChunks has to be turned on atleast once prior to running .newchunkcount for the counter to work even if you already have data in that world.

## Requirements:
- If you are using Minecraft version **1.20.1**, then use the latest **MeteorClient Dev Build of v0.5.4**
- If you are using Minecraft version **1.19.4**, then use **MeteorClient "Full Release" v0.5.3**
- If you are using Minecraft version **1.20.2**, then use the latest **MeteorClient Dev Build of v0.5.5**
- If you are using Minecraft version **1.20.1**, then use **MeteorClient "Full Release" v0.5.4**
- If you are using Minecraft version **1.19.4**, then use **MeteorClient "Full Release" v0.5.3** No longer available for download.
- Please try [ViaFabricPlus](https://github.com/FlorianMichael/ViaFabricPlus), which will let you connect to almost any version from a new version client.
- Don't forget to try updating any other mods you are using if your game is crashing.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.2-SNAPSHOT'
id 'fabric-loom' version '1.4-SNAPSHOT'
}

sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
org.gradle.jvmargs=-Xmx2G

# Fabric (https://fabricmc.net/versions.html)
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
loader_version=0.14.21
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.4
loader_version=0.14.22

# Mod Properties
mod_version=0.6.6-1.20.1
mod_version=0.6.6-1.20.2
maven_group=pwn.noobs
archives_base_name=1trouser-streak

# Dependency Versionsz

# Meteor (https://maven.meteordev.org/)
meteor_version=0.5.4-SNAPSHOT
meteor_version=0.5.5-SNAPSHOT
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-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -19,13 +19,13 @@ public WorldInfoCommand() {
}

@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
public void build(LiteralArgumentBuilder<CommandSource> builder) {
builder.executes(context -> {
ChatUtils.sendMsg(Text.of("East World Border X: "+(int) mc.world.getWorldBorder().getBoundEast()+", West World Border X: "+(int) mc.world.getWorldBorder().getBoundWest()+", South World Border Z: "+(int) mc.world.getWorldBorder().getBoundSouth()+", North World Border Z: "+(int) mc.world.getWorldBorder().getBoundNorth()));
ChatUtils.sendMsg(Text.of("Default WorldSpawn Location (May be different if changed): "+mc.world.getSpawnPos()));
ChatUtils.sendMsg(Text.of("Difficulty: "+mc.world.getDifficulty().toString()));
ChatUtils.sendMsg(Text.of("DO_DAYLIGHT_CYCLE: "+mc.world.getGameRules().getBoolean(GameRules.DO_DAYLIGHT_CYCLE)));
return SINGLE_SUCCESS;
});
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client).
* Copyright (c) Meteor Development.
*/

package pwn.noobs.trouserstreak.mixin;

import meteordevelopment.meteorclient.systems.config.Config;
6 changes: 3 additions & 3 deletions src/main/java/pwn/noobs/trouserstreak/modules/BaseFinder.java
Original file line number Diff line number Diff line change
@@ -644,12 +644,12 @@ private void onReadPacket(PacketEvent.Receive event) {
if (!(event.packet instanceof PlayerMoveC2SPacket) && event.packet instanceof ChunkDataS2CPacket && mc.world != null) {
ChunkDataS2CPacket packet = (ChunkDataS2CPacket) event.packet;

basepos = new ChunkPos(packet.getX(), packet.getZ());
basepos = new ChunkPos(packet.getChunkX(), packet.getChunkZ());

if (mc.world.getChunkManager().getChunk(packet.getX(), packet.getZ()) == null) {
if (mc.world.getChunkManager().getChunk(packet.getChunkX(), packet.getChunkZ()) == null) {
WorldChunk chunk = new WorldChunk(mc.world, basepos);
try {
chunk.loadFromPacket(packet.getChunkData().getSectionsDataBuf(), new NbtCompound(), packet.getChunkData().getBlockEntities(packet.getX(), packet.getZ()));
chunk.loadFromPacket(packet.getChunkData().getSectionsDataBuf(), new NbtCompound(), packet.getChunkData().getBlockEntities(packet.getChunkX(), packet.getChunkZ()));
} catch (ArrayIndexOutOfBoundsException e) {
return;
}
Original file line number Diff line number Diff line change
@@ -585,12 +585,12 @@ else if (event.packet instanceof BlockUpdateS2CPacket) {
else if (event.packet instanceof ChunkDataS2CPacket && mc.world != null) {
ChunkDataS2CPacket packet = (ChunkDataS2CPacket) event.packet;

oldpos = new ChunkPos(packet.getX(), packet.getZ());
oldpos = new ChunkPos(packet.getChunkX(), packet.getChunkZ());

if (mc.world.getChunkManager().getChunk(packet.getX(), packet.getZ()) == null) {
if (mc.world.getChunkManager().getChunk(packet.getChunkX(), packet.getChunkZ()) == null) {
WorldChunk chunk = new WorldChunk(mc.world, oldpos);
try {
chunk.loadFromPacket(packet.getChunkData().getSectionsDataBuf(), new NbtCompound(), packet.getChunkData().getBlockEntities(packet.getX(), packet.getZ()));
chunk.loadFromPacket(packet.getChunkData().getSectionsDataBuf(), new NbtCompound(), packet.getChunkData().getBlockEntities(packet.getChunkX(), packet.getChunkZ()));
} catch (ArrayIndexOutOfBoundsException e) {
return;
}

0 comments on commit 846202b

Please sign in to comment.