From 787362dab72cef13bc97d030c2d7c22b9d32c176 Mon Sep 17 00:00:00 2001 From: Connor Linfoot Date: Sun, 16 Jun 2024 22:00:45 +0100 Subject: fix: remove location event packet always being registered --- src/main/java/net/hypixel/modapi/forge/ForgeModAPI.java | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/main/java/net/hypixel') diff --git a/src/main/java/net/hypixel/modapi/forge/ForgeModAPI.java b/src/main/java/net/hypixel/modapi/forge/ForgeModAPI.java index 9b8777c..6795d9f 100644 --- a/src/main/java/net/hypixel/modapi/forge/ForgeModAPI.java +++ b/src/main/java/net/hypixel/modapi/forge/ForgeModAPI.java @@ -6,7 +6,6 @@ import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; import net.hypixel.modapi.HypixelModAPI; import net.hypixel.modapi.packet.HypixelPacket; -import net.hypixel.modapi.packet.impl.clientbound.event.ClientboundLocationPacket; import net.hypixel.modapi.serializer.PacketSerializer; import net.minecraft.client.Minecraft; import net.minecraft.client.network.NetHandlerPlayClient; @@ -36,7 +35,6 @@ public class ForgeModAPI { @Mod.EventHandler public void init(FMLPostInitializationEvent event) { MinecraftForge.EVENT_BUS.register(this); - HypixelModAPI.getInstance().subscribeToEventPacket(ClientboundLocationPacket.class); HypixelModAPI.getInstance().setPacketSender(this::sendPacket); } -- cgit