mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-16 07:15:24 +01:00
Minor coverage improvement for packets
This commit is contained in:
parent
c87d7bc6f3
commit
da967a4e56
@ -410,7 +410,8 @@ class PacketReactor(object):
|
|||||||
state_name = None
|
state_name = None
|
||||||
TIME_OUT = 0
|
TIME_OUT = 0
|
||||||
|
|
||||||
get_clientbound_packets = staticmethod(lambda context: set())
|
# Handshaking is considered the "default" state
|
||||||
|
get_clientbound_packets = staticmethod(packets.state_handshake_clientbound)
|
||||||
|
|
||||||
def __init__(self, connection):
|
def __init__(self, connection):
|
||||||
self.connection = connection
|
self.connection = connection
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import unittest
|
import unittest
|
||||||
import uuid
|
|
||||||
from minecraft.networking.types import (
|
from minecraft.networking.types import (
|
||||||
Type, Boolean, UnsignedByte, Byte, Short, UnsignedShort,
|
Type, Boolean, UnsignedByte, Byte, Short, UnsignedShort,
|
||||||
Integer, VarInt, Long, Float, Double, ShortPrefixedByteArray,
|
Integer, VarInt, Long, Float, Double, ShortPrefixedByteArray,
|
||||||
|
Loading…
Reference in New Issue
Block a user