diff options
| author | raven <citrons@mondecitronne.com> | 2026-03-22 15:22:52 -0500 |
|---|---|---|
| committer | raven <citrons@mondecitronne.com> | 2026-03-22 15:24:00 -0500 |
| commit | 0dbe6d3c10621adf1552741ce2cba4178304fecd (patch) | |
| tree | 7fc3a26e544a7c637cd680779ba81918ca93ad6b /classic | |
| parent | c8ccf29f3154299b7f692e75cfe835935e9b8362 (diff) | |
support CustomBlocks
Diffstat (limited to 'classic')
| -rw-r--r-- | classic/ext_custom_blocks.go | 8 | ||||
| -rw-r--r-- | classic/packets.go | 1 |
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 } } |
