fixed an issue with mc 1.8.8 where velocity is not being sent and self.data is negative

This commit is contained in:
TheSnoozer authored and joo committed 2017-08-09 16:33:41 +01:00
1 parent 6fbf75203c
commit cc466bb0ea
1 file changed
+1 -1
+1 -1
View File
@@ -995,7 +995,7 @@ class ClientSpawnObject(Packet):
self.data = Integer.read(file_object)
if self._context.protocol_version < 49:
if self.data != 0:
if self.data > 0:
self.velocity_x = Short.read(file_object)
self.velocity_y = Short.read(file_object)
self.velocity_z = Short.read(file_object)