Syncing and Large Packet Completion

This commit is contained in:
Kam committed 2025-01-29 18:25:34 -05:00
1 parent dcf3a0d8b0
commit de56032118
39 files changed
+648 -862

No files matched your search

+2 -6
View File
@@ -90,6 +90,8 @@ public class CustomNpcs {
Channel = NetworkRegistry.INSTANCE.newEventDrivenChannel("CustomNPCs");
ChannelPlayer = NetworkRegistry.INSTANCE.newEventDrivenChannel("CustomNPCsPlayer");
PacketHandler.Instance = new PacketHandler();
MinecraftServer server = MinecraftServer.getServer();
String dir = "";
if (server != null) {
@@ -250,12 +252,6 @@ public class CustomNpcs {
ServerTagMapController.Instance = new ServerTagMapController();
}
//Loading items in the about to start event was corrupting items with a damage value
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
PacketHandler.Instance = new PacketHandler();
}
@EventHandler
public void stopped(FMLServerStoppedEvent event){