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 1c5015adf4 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -45,7 +45,6 @@ public interface ProtocolWrapper {
Object playerInfoPacketConstructor(PlayerInfoAction action, GameProfile profile, GameMode mode);
default void initTPSWarp(LongSupplier longSupplier) {
if (Core.getVersion() > 19) return;
Class systemUtils = Reflection.getClass("{nms}.SystemUtils");
Reflection.getField(systemUtils, LongSupplier.class, 0).set(systemUtils, longSupplier);
}