From c5020eaef134e07ea15958145f49b2e345244025 Mon Sep 17 00:00:00 2001 From: zOnlyKroks Date: Fri, 1 Apr 2022 16:34:02 +0200 Subject: [PATCH] Initial Commit --- src/main/java/de/steamwar/modsender/ModSender.java | 5 +++-- src/main/resources/fabric.mod.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/steamwar/modsender/ModSender.java b/src/main/java/de/steamwar/modsender/ModSender.java index b6ed40d..0c183e9 100644 --- a/src/main/java/de/steamwar/modsender/ModSender.java +++ b/src/main/java/de/steamwar/modsender/ModSender.java @@ -31,7 +31,8 @@ public class ModSender implements ModInitializer { private final Logger logger = LogManager.getLogger(); - @Override public void onInitialize() { + @Override + public void onInitialize() { logger.info("Initializing Steamwar System Mod"); } @@ -42,7 +43,7 @@ public class ModSender implements ModInitializer { ja.add(container.getMetadata().getId()); } PacketByteBuf packetByteBuf = new PacketByteBuf(Unpooled.buffer()); - packetByteBuf.writeString(String.valueOf(ja)); + packetByteBuf.writeString(ja.toString()); CustomPayloadC2SPacket packet = new CustomPayloadC2SPacket(channelIdentifier,packetByteBuf); MinecraftClient.getInstance().getNetworkHandler().sendPacket(packet); } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 787aa8e..225a643 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -18,6 +18,6 @@ ], "depends": { "fabricloader": ">=0.12.12", - "minecraft": "1.15.2" + "minecraft": ">=1.15.2" } }