mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-08-26 14:52:46 +02:00
Merge pull request #1842 from creeper123123321/fixdisablebaseprotocol
inactivate userconnection correctly when there's no translation
This commit is contained in:
commit
67ef4700c7
|
@ -123,10 +123,9 @@ public class BaseProtocol1_7 extends SimpleProtocol {
|
|||
// Add to ported clients
|
||||
Via.getManager().handleLoginSuccess(wrapper.user());
|
||||
|
||||
if (info.getPipeline().pipes().size() == 2
|
||||
&& info.getPipeline().pipes().get(1).getClass().isAssignableFrom(BaseProtocol1_7.class)
|
||||
&& info.getPipeline().pipes().get(0).getClass() == BaseProtocol.class) // Only base protocol
|
||||
if (info.getPipeline().pipes().stream().allMatch(ProtocolRegistry::isBaseProtocol)) { // Only base protocol
|
||||
wrapper.user().setActive(false);
|
||||
}
|
||||
|
||||
if (Via.getManager().isDebug()) {
|
||||
// Print out the route to console
|
||||
|
|
Loading…
Reference in New Issue
Block a user