unnecessary cancel when auto-team is disabled

This commit is contained in:
creeper123123321 2019-02-24 15:07:34 -03:00
parent f46a2bb618
commit 44be8b3791
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1

View File

@ -183,10 +183,10 @@ public class WorldPackets {
}
}
wrapper.set(Type.VAR_INT, 0, checkStorage(wrapper.user(), position, newId));
// Workaround for packet order issue
wrapper.send(Protocol1_13To1_12_2.class, true, true);
wrapper.cancel();
if (Via.getConfig().isServersideBlockConnections()) {
// Workaround for packet order issue
wrapper.send(Protocol1_13To1_12_2.class, true, true);
wrapper.cancel();
ConnectionData.update(userConnection, position);
}