mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-16 07:15:24 +01:00
Update to protocol version 61
This commit is contained in:
parent
db5e603a2e
commit
eb67fd9339
@ -74,7 +74,7 @@ def handle07(FileObject):
|
|||||||
|
|
||||||
|
|
||||||
def handle08(FileObject):
|
def handle08(FileObject):
|
||||||
health = DataUtil.readShort(FileObject)
|
health = DataUtil.readFloat(FileObject)
|
||||||
food = DataUtil.readShort(FileObject)
|
food = DataUtil.readShort(FileObject)
|
||||||
saturation = DataUtil.readFloat(FileObject)
|
saturation = DataUtil.readFloat(FileObject)
|
||||||
return {'health': health,
|
return {'health': health,
|
||||||
|
@ -13,7 +13,7 @@ def sendHandshake(socket, username, host, port):
|
|||||||
socket.send("\x02")
|
socket.send("\x02")
|
||||||
|
|
||||||
#byte - protocol version
|
#byte - protocol version
|
||||||
DataUtil.sendByte(socket, 60)
|
DataUtil.sendByte(socket, 61)
|
||||||
|
|
||||||
#string - username
|
#string - username
|
||||||
DataUtil.sendString(socket, username)
|
DataUtil.sendString(socket, username)
|
||||||
|
Loading…
Reference in New Issue
Block a user