Register tabcompletethread once - fixes #1316

This commit is contained in:
creeper123123321 2019-05-05 14:16:24 -03:00
parent 5ca8b0aef8
commit 5a2c047e7a
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1

View File

@ -1144,15 +1144,15 @@ public class Protocol1_13To1_12_2 extends Protocol {
userConnection.put(new BlockConnectionStorage(userConnection));
}
}
if (Via.getConfig().get1_13TabCompleteDelay() > 0) {
Via.getPlatform().runRepeatingSync(new TabCompleteThread(), 1L);
}
}
@Override
protected void register(ViaProviders providers) {
providers.register(BlockEntityProvider.class, new BlockEntityProvider());
providers.register(PaintingProvider.class, new PaintingProvider());
if (Via.getConfig().get1_13TabCompleteDelay() > 0) {
Via.getPlatform().runRepeatingSync(new TabCompleteThread(), 1L);
}
}
private int getNewSoundID(final int oldID) {