summaryrefslogtreecommitdiff
path: root/classic
diff options
context:
space:
mode:
Diffstat (limited to 'classic')
-rw-r--r--classic/ext_custom_blocks.go8
-rw-r--r--classic/packets.go1
2 files changed, 9 insertions, 0 deletions
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
}
}