From 0dbe6d3c10621adf1552741ce2cba4178304fecd Mon Sep 17 00:00:00 2001 From: raven Date: Sun, 22 Mar 2026 15:22:52 -0500 Subject: support CustomBlocks --- classic/ext_custom_blocks.go | 8 ++++++++ classic/packets.go | 1 + 2 files changed, 9 insertions(+) create mode 100644 classic/ext_custom_blocks.go (limited to 'classic') diff --git a/classic/ext_custom_blocks.go b/classic/ext_custom_blocks.go new file mode 100644 index 0000000..f19c2f8 --- /dev/null +++ b/classic/ext_custom_blocks.go @@ -0,0 +1,8 @@ +package classic + +type CustomBlocksSupportLevel struct { + SupportLevel byte +} +func (p *CustomBlocksSupportLevel) PacketId() byte { + return 0x13 +} diff --git a/classic/packets.go b/classic/packets.go index e361399..0e55429 100644 --- a/classic/packets.go +++ b/classic/packets.go @@ -200,6 +200,7 @@ func createPacketType(packetId byte, client bool, ext map[string]bool) Packet { case 0x0f: return &UpdateUserType {} case 0x10: return &ExtInfo {} case 0x11: return &ExtEntry {} + case 0x13: return &CustomBlocksSupportLevel {} default: return nil } } -- cgit v1.2.3