Complete Large Packet Sending

This commit is contained in:
Kam committed 2025-01-29 15:04:19 -05:00
1 parent 36c8b70eb4
commit f573259fd1
11 files changed
+219 -152

No files matched your search

@@ -16,6 +16,7 @@ import kamkeel.npcs.command.profile.CommandProfile;
import kamkeel.npcs.controllers.ProfileController;
import kamkeel.npcs.controllers.data.CNPCData;
import kamkeel.npcs.developer.Developer;
import kamkeel.npcs.network.PacketHandler;
import net.minecraft.block.Block;
import net.minecraft.block.BlockIce;
import net.minecraft.block.BlockLeavesBase;
@@ -249,6 +250,13 @@ 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){
ServerCloneController.Instance = null;