fix broken tests
This commit is contained in:
1 parent
4a508f935b
commit
346b3081ec
4 files changed
+54
-50
No files matched your search
@@ -0,0 +1,3 @@
|
||||
"""
|
||||
Contains the clientbound packets for `pyminecraft`.
|
||||
"""
|
||||
@@ -215,9 +215,7 @@ class BlockChangePacket(Packet):
|
||||
|
||||
def write(self, socket, compression_threshold=None):
|
||||
packet_buffer = PacketBuffer()
|
||||
x = self.location['x']
|
||||
y = self.location['y']
|
||||
z = self.location['z']
|
||||
(x, y, z) = self.location
|
||||
Position.send(x, y, z, packet_buffer)
|
||||
blockData = ((self.blockId << 4) | (self.blockMeta & 0xF))
|
||||
VarInt.send(blockData)
|
||||
|
||||
Reference in new issue
Block a user