B73 and packet S02
-
Is that broken in b73 in general and will it be fixed some day?
module.on("packet", function (e) { var packet = e.getPacket(); if (packet instanceof S02) { if (packet.getChatComponent().getUnformattedText().contains("something")) { //something } } });@faaatpotato Try version b72
-
@faaatpotato Try version b72
@aashaby no
-
Is that broken in b73 in general and will it be fixed some day?
module.on("packet", function (e) { var packet = e.getPacket(); if (packet instanceof S02) { if (packet.getChatComponent().getUnformattedText().contains("something")) { //something } } });@faaatpotato
Try to replacepacket = e.getPacket()
withpacket = e.getPacket().wrapped.If you are having problems with wrapped packets on cross-version.
-
Is that broken in b73 in general and will it be fixed some day?
module.on("packet", function (e) { var packet = e.getPacket(); if (packet instanceof S02) { if (packet.getChatComponent().getUnformattedText().contains("something")) { //something } } });@faaatpotato What you need is
S02PacketChat -
@faaatpotato What you need is
S02PacketChat@konoha-scarlet ig no
i was just laizy
var S02 = Java.type("net.minecraft.network.play.server.S02PacketChat");did not type that into my top message
-
Is that broken in b73 in general and will it be fixed some day?
module.on("packet", function (e) { var packet = e.getPacket(); if (packet instanceof S02) { if (packet.getChatComponent().getUnformattedText().contains("something")) { //something } } });@faaatpotato use wrapped packets with searge obfuscated methods
-
@faaatpotato use wrapped packets with searge obfuscated methods
@dntdbt kk
-
@sigmer


-
@faaatpotato
Try to replacepacket = e.getPacket()
withpacket = e.getPacket().wrapped.If you are having problems with wrapped packets on cross-version.
@czechhek i really hate cross version, breaking a shit ton of scripts man

-
@czechhek i really hate cross version, breaking a shit ton of scripts man

@fartcheese all of them correctly work if you use wrapped access & searge names
example (I did not really use "wrapped access" because I fixed this shit by changing wrapped events to unwrapped in my custom build):
non xversion:onPacket: function(e) { e.getPacket() instanceof C03PacketPlayer && (e.getPacket().onGround = true); }xversion:
onPacket: function(e) { e.getPacket() instanceof C03PacketPlayer && (e.getPacket().wrapped.field_149474_g = true); //onGround } -
@fartcheese all of them correctly work if you use wrapped access & searge names
example (I did not really use "wrapped access" because I fixed this shit by changing wrapped events to unwrapped in my custom build):
non xversion:onPacket: function(e) { e.getPacket() instanceof C03PacketPlayer && (e.getPacket().onGround = true); }xversion:
onPacket: function(e) { e.getPacket() instanceof C03PacketPlayer && (e.getPacket().wrapped.field_149474_g = true); //onGround }@idk-my-name said in B73 and packet S02:
searge names
You can find all of them in LiquidBounce-1.8/mcp-stable_22.srg

-
@fartcheese all of them correctly work if you use wrapped access & searge names
example (I did not really use "wrapped access" because I fixed this shit by changing wrapped events to unwrapped in my custom build):
non xversion:onPacket: function(e) { e.getPacket() instanceof C03PacketPlayer && (e.getPacket().onGround = true); }xversion:
onPacket: function(e) { e.getPacket() instanceof C03PacketPlayer && (e.getPacket().wrapped.field_149474_g = true); //onGround }@idk-my-name yeah, and by telling a lot of script makers to use wrapped packets because of a change

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login