add license and fix some bugs

This commit is contained in:
2026-02-17 22:25:39 +08:00
parent a885a7eec4
commit da87c54494
15 changed files with 528 additions and 543 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ type ClientboundPacket interface {
type packetCreator func() ClientboundPacket
var packetRegistry = make(map[packetid.ClientboundPacketID]packetCreator)
var ClientboundPackets = make(map[packetid.ClientboundPacketID]packetCreator)
func registerPacket(id packetid.ClientboundPacketID, creator packetCreator) {
packetRegistry[id] = creator
ClientboundPackets[id] = creator
}