12
0

Add TPSWarpUtils #245

Zusammengeführt
Lixfel hat 6 Commits von TPSWarp nach master 2023-10-10 18:20:57 +02:00 zusammengeführt
Nur Änderungen aus Commit b40bb81b7f werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -46,7 +46,7 @@ public interface ProtocolWrapper {
default void initTPSWarp(LongSupplier longSupplier) {
Class systemUtils = Reflection.getClass("{nms}.SystemUtils");
Reflection.getField(systemUtils, LongSupplier.class, 0).set(systemUtils, longSupplier);
Reflection.getField(systemUtils, LongSupplier.class, 0).set(systemUtils, (LongSupplier) () -> System.nanoTime() + longSupplier.getAsLong());
}
enum PlayerInfoAction {