-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.3.5 Activated Trial Spawner Detection and much more!
**Fixed my silly maths** - Fixed a bug with ActivatedSpawnerDetector, BaseFinder, HoleAndTunnelAndStairsESP, NewerNewChunks, OnlinePlayerActivityDetector, and PotESP where the rendered things would disappear if you were flying really high up. **Merged Pull Requests to Fix things!** - Accepted a Pull Request from [nokernelspace](https://github.com/nokernelspace) that fixes the Book And Quill Dupe module for Minecraft 1.21.3 - Accepted a PR from [DedicateDev](https://github.com/DedicateDev) that implements a tick delay between commands for AutoDisplays, AutoScoreBoard, and AutoTitles. This solve this issue #51 - Accepted a PR from [DedicateDev](https://github.com/DedicateDev) that implements StarScript for commands for the AutoCommand module. This solve this issue #61 **New AutoNames Module Added!** - Automatically change player name colors, prefix, suffix in tab and chat. Credits to [DedicateDev](https://github.com/DedicateDev) for this module! - This module requires OP status! **NewerNewChunks Upgrades!** - Cleaned up code just a little again in NewerNewChunks. - Removed the NewChunkCounter command because it's not that useful for anything other than some debugging. This is also to clean up code in NewerNewChunks - The above changes appear to have increased performance when using NewerNewChunks maybe (I could be mistaken) **New ActivatedSpawnerDetector Features!** - TrialSpawnerDetector added, which tells you about the Trial Spawner blocks people have walked within 14 blocks of if they have not completed the trial. - Made the ActivatedSpawnerDetector tell you what structure the spawner is in, based on the natural places different mob spawners spawn (ex: zombie spawner is a dungeon). - Added an option **enabled by default** which makes no rendering happen if there are no chests within a 16 block radius of the spawner. **Other Changes** - Deleted TrouserBlockESP module because Meteor Client's default one is a little more performant, does the same thing, and I do not feel like maintaining the one in Trouser-Streak.
- Loading branch information
Showing
17 changed files
with
734 additions
and
664 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
36 changes: 18 additions & 18 deletions
36
src/main/java/pwn/noobs/trouserstreak/mixin/PacketCodecsMixin.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,18 +1,18 @@ | ||
package pwn.noobs.trouserstreak.mixin; | ||
|
||
import io.netty.buffer.ByteBuf; | ||
import net.minecraft.network.codec.PacketCodecs; | ||
import net.minecraft.network.encoding.VarInts; | ||
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; | ||
|
||
@Mixin(PacketCodecs.class) | ||
public interface PacketCodecsMixin { | ||
@Inject(method = "Lnet/minecraft/network/codec/PacketCodecs;writeCollectionSize(Lio/netty/buffer/ByteBuf;II)V", at = @At("HEAD"), cancellable = true) | ||
private static void writeCollectionsSize(ByteBuf buf, int size, int maxSize, CallbackInfo ci){ | ||
VarInts.write(buf, size); | ||
ci.cancel(); | ||
} | ||
} | ||
package pwn.noobs.trouserstreak.mixin; | ||
|
||
import io.netty.buffer.ByteBuf; | ||
import net.minecraft.network.codec.PacketCodecs; | ||
import net.minecraft.network.encoding.VarInts; | ||
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; | ||
|
||
@Mixin(PacketCodecs.class) | ||
public interface PacketCodecsMixin { | ||
@Inject(method = "Lnet/minecraft/network/codec/PacketCodecs;writeCollectionSize(Lio/netty/buffer/ByteBuf;II)V", at = @At("HEAD"), cancellable = true) | ||
private static void writeCollectionsSize(ByteBuf buf, int size, int maxSize, CallbackInfo ci){ | ||
VarInts.write(buf, size); | ||
ci.cancel(); | ||
} | ||
} |
58 changes: 29 additions & 29 deletions
58
src/main/java/pwn/noobs/trouserstreak/mixin/StringEncodingMixin.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,29 +1,29 @@ | ||
package pwn.noobs.trouserstreak.mixin; | ||
|
||
import io.netty.buffer.ByteBuf; | ||
import io.netty.buffer.ByteBufUtil; | ||
import net.minecraft.network.encoding.StringEncoding; | ||
import net.minecraft.network.encoding.VarInts; | ||
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; | ||
|
||
@Mixin(StringEncoding.class) | ||
public class StringEncodingMixin { | ||
@Inject(method ="Lnet/minecraft/network/encoding/StringEncoding;encode(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;I)V" , at = @At("HEAD"), cancellable = true) | ||
private static void writeCollectionsSize(ByteBuf buf, CharSequence string, int maxLength, CallbackInfo ci){ | ||
int i = ByteBufUtil.utf8MaxBytes(string); | ||
ByteBuf byteBuf = buf.alloc().buffer(i); | ||
|
||
try { | ||
int j = ByteBufUtil.writeUtf8(byteBuf, string); | ||
int k = ByteBufUtil.utf8MaxBytes(maxLength); | ||
VarInts.write(buf, j); | ||
buf.writeBytes(byteBuf); | ||
} finally { | ||
byteBuf.release(); | ||
} | ||
ci.cancel(); | ||
} | ||
} | ||
package pwn.noobs.trouserstreak.mixin; | ||
|
||
import io.netty.buffer.ByteBuf; | ||
import io.netty.buffer.ByteBufUtil; | ||
import net.minecraft.network.encoding.StringEncoding; | ||
import net.minecraft.network.encoding.VarInts; | ||
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; | ||
|
||
@Mixin(StringEncoding.class) | ||
public class StringEncodingMixin { | ||
@Inject(method ="Lnet/minecraft/network/encoding/StringEncoding;encode(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;I)V" , at = @At("HEAD"), cancellable = true) | ||
private static void writeCollectionsSize(ByteBuf buf, CharSequence string, int maxLength, CallbackInfo ci){ | ||
int i = ByteBufUtil.utf8MaxBytes(string); | ||
ByteBuf byteBuf = buf.alloc().buffer(i); | ||
|
||
try { | ||
int j = ByteBufUtil.writeUtf8(byteBuf, string); | ||
int k = ByteBufUtil.utf8MaxBytes(maxLength); | ||
VarInts.write(buf, j); | ||
buf.writeBytes(byteBuf); | ||
} finally { | ||
byteBuf.release(); | ||
} | ||
ci.cancel(); | ||
} | ||
} |
Oops, something went wrong.