3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-26 08:10:09 +01:00

Merge pull request #1317 from creeper123123321/master

Register tabcompletethread once - fixes #1316
Dieser Commit ist enthalten in:
Myles 2019-05-05 19:25:29 +01:00 committet von GitHub
Commit d91d47a755
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

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