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" } }