Skip to content

Commit

Permalink
RocketMan - Updated packet names for 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTas committed Jun 29, 2024
1 parent 05a4c1e commit 5d96cff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main/java/dev/stardust/modules/RocketMan.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
import meteordevelopment.meteorclient.events.world.TickEvent;
import meteordevelopment.meteorclient.systems.modules.Modules;
import meteordevelopment.meteorclient.mixininterface.IChatHud;
import net.minecraft.network.packet.c2s.play.PlayPongC2SPacket;
import net.minecraft.network.packet.s2c.play.PlaySoundS2CPacket;
import meteordevelopment.meteorclient.events.packets.PacketEvent;
import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket;
import net.minecraft.network.packet.c2s.common.CommonPongC2SPacket;
import meteordevelopment.meteorclient.events.meteor.MouseScrollEvent;
import meteordevelopment.meteorclient.systems.modules.render.Freecam;
import net.minecraft.network.packet.s2c.play.EntitiesDestroyS2CPacket;
Expand Down Expand Up @@ -453,7 +453,7 @@ public enum RocketMode { OnForwardKey, Static, Dynamic }
public @Nullable Long extensionStartTime = null;
public @Nullable BlockPos extensionStartPos = null;
public @Nullable FireworkRocketEntity currentRocket = null;
private final ArrayList<PlayPongC2SPacket> pongQueue = new ArrayList<>();
private final ArrayList<CommonPongC2SPacket> pongQueue = new ArrayList<>();

private void useFireworkRocket(String caller) {
if (mc.player == null) return;
Expand Down Expand Up @@ -522,7 +522,7 @@ public void discardCurrentRocket(String source) {
}

if (extendRockets.get() && !pongQueue.isEmpty()) {
for (PlayPongC2SPacket pong : pongQueue) {
for (CommonPongC2SPacket pong : pongQueue) {
mc.getNetworkHandler().sendPacket(pong);
}
pongQueue.clear();
Expand Down Expand Up @@ -882,7 +882,7 @@ else if (usageMode.get().equals(RocketMode.Static)) {
@EventHandler
private void onSendPacket(PacketEvent.Send event) {
if (mc.player == null || !mc.player.isFallFlying()) return;
if (extendRockets.get() && durationBoosted && event.packet instanceof PlayPongC2SPacket packet) {
if (extendRockets.get() && durationBoosted && event.packet instanceof CommonPongC2SPacket packet) {
event.cancel();
pongQueue.add(packet);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/stardust.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"WrittenBookContentsAccessor",
"AbstractSignEditScreenMixin",
"SignBlockEntityRendererMixin",
"AbstractSignEditScreenAccessor",
"AbstractSignEditScreenAccessor"
],
"injectors": {
"defaultRequire": 1
Expand Down

0 comments on commit 5d96cff

Please sign in to comment.