File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
src/main/java/spigey/asteroide/modules Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public ChestStealerModule() {
5959 );
6060 public final Setting <Mode > mode = sgGeneral .add (new EnumSetting .Builder <Mode >()
6161 .name ("mode" )
62- .description ("Whether to use the new or classic method of stealing items " )
62+ .description ("New works in all GUIs whereas classic is better for automation " )
6363 .defaultValue (Mode .Classic )
6464 .build ()
6565 );
@@ -68,6 +68,7 @@ private enum Mode {
6868 New ,
6969 Classic
7070 }
71+
7172 private int tick ;
7273 private int i = -1 ;
7374 DefaultedList <Slot > slots ;
Original file line number Diff line number Diff line change 1212import meteordevelopment .meteorclient .systems .modules .Modules ;
1313import meteordevelopment .meteorclient .utils .player .ChatUtils ;
1414import meteordevelopment .orbit .EventHandler ;
15+ import net .minecraft .network .packet .c2s .common .CustomPayloadC2SPacket ;
1516import net .minecraft .network .packet .c2s .play .ClickSlotC2SPacket ;
1617import net .minecraft .text .Text ;
1718import spigey .asteroide .AsteroideAddon ;
@@ -45,8 +46,19 @@ public DevModule() {
4546 .build ()
4647 );
4748
49+ private final Setting <Boolean > testBrand = sgGeneral .add (new BoolSetting .Builder ()
50+ .name ("Brand Test" )
51+ .description ("Tests Client Brand" )
52+ .defaultValue (false )
53+ .build ()
54+ );
55+
4856 @ EventHandler
4957 private void onPacketSend (PacketEvent .Send event ) {
58+ if (event .packet instanceof CustomPayloadC2SPacket && testBrand .get ()){
59+ info ("§cClient Brand: §a" + ((CustomPayloadC2SPacket ) event .packet ).payload ().getId ().id ());
60+ System .out .print (((CustomPayloadC2SPacket ) event .packet ).payload ().getId ().id ());
61+ }
5062 if (!(event .packet instanceof ClickSlotC2SPacket ) || !slots .get ()) return ;
5163 ChatUtils .sendMsg (Text .of ("§cSLOT " + ((ClickSlotC2SPacket ) event .packet ).getSlot ()));
5264 ChatUtils .sendMsg (Text .of ("§aREVISION " + ((ClickSlotC2SPacket ) event .packet ).getRevision ()));
You can’t perform that action at this time.
0 commit comments