This repository was archived by the owner on Mar 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
common/src/main/java/arcnode/reshack/mod
forge/src/main/java/arcnode/reshack/mod/forge Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,13 +37,11 @@ public static void init() {
3737 }
3838
3939 public static void sendRequest () {
40- // Minecraft.getInstance().doRunTask(() -> {
41- LOG .info ("Sending configuration request" );
42- Minecraft .getInstance ().getConnection ().send (new ServerboundCustomPayloadPacket (
43- channelConfig ,
44- new FriendlyByteBuf (Unpooled .buffer ())
45- ));
46- // });
40+ LOG .info ("Sending configuration request" );
41+ Minecraft .getInstance ().getConnection ().send (new ServerboundCustomPayloadPacket (
42+ channelConfig ,
43+ new FriendlyByteBuf (Unpooled .buffer ())
44+ ));
4745 }
4846
4947 public static boolean configure (ClientboundCustomPayloadPacket packet ) {
Original file line number Diff line number Diff line change 33import arcnode .reshack .mod .ResourceHack ;
44import net .minecraft .network .protocol .game .ClientGamePacketListener ;
55import net .minecraft .network .protocol .game .ClientboundCustomPayloadPacket ;
6- import net .minecraft .resources .ResourceLocation ;
76import org .spongepowered .asm .mixin .Mixin ;
8- import org .spongepowered .asm .mixin .Shadow ;
97import org .spongepowered .asm .mixin .injection .At ;
108import org .spongepowered .asm .mixin .injection .Inject ;
119import org .spongepowered .asm .mixin .injection .callback .CallbackInfo ;
1210
1311@ Mixin (value = ClientboundCustomPayloadPacket .class , priority = 1514 )
1412public abstract class MixinClientboundCustomPayloadPacket {
15- @ Shadow public abstract ResourceLocation getIdentifier ();
16-
1713 @ Inject (
1814 method = "handle(Lnet/minecraft/network/protocol/game/ClientGamePacketListener;)V" ,
1915 at = @ At ("HEAD" ),
Original file line number Diff line number Diff line change 99import net .minecraftforge .fml .common .Mod ;
1010
1111import arcnode .reshack .mod .ResourceHack ;
12- import net .minecraftforge .fml .javafmlmod .FMLJavaModLoadingContext ;
1312
1413@ Mod (ResourceHack .MOD_ID )
1514@ OnlyIn (Dist .CLIENT )
You can’t perform that action at this time.
0 commit comments