Skip to content

Commit ab312f2

Browse files
committed
I ran out of ideas.
1 parent f118d6e commit ab312f2

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

build/libs/asteroide-0.2.1.jar

335 Bytes
Binary file not shown.

src/main/java/spigey/asteroide/modules/ChestStealerModule.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

src/main/java/spigey/asteroide/modules/DevModule.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import meteordevelopment.meteorclient.systems.modules.Modules;
1313
import meteordevelopment.meteorclient.utils.player.ChatUtils;
1414
import meteordevelopment.orbit.EventHandler;
15+
import net.minecraft.network.packet.c2s.common.CustomPayloadC2SPacket;
1516
import net.minecraft.network.packet.c2s.play.ClickSlotC2SPacket;
1617
import net.minecraft.text.Text;
1718
import 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()));

0 commit comments

Comments
 (0)