Skip to content

Commit cef7fc5

Browse files
committed
Fixed ProtocolLib initialization in v5.3.0
- Updated FakeEntity class
1 parent 2aa3445 commit cef7fc5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/io/josemmo/bukkit/plugin/renderer/FakeEntity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import org.jetbrains.annotations.NotNull;
1313
import org.jetbrains.annotations.Nullable;
1414
import java.lang.reflect.Field;
15-
import java.lang.reflect.Type;
1615

1716
public abstract class FakeEntity {
1817
private static final Logger LOGGER = Logger.getLogger("FakeEntity");
@@ -46,7 +45,7 @@ public abstract class FakeEntity {
4645
public static void initialize() {
4746
LOGGER.fine("Initializing ProtocolLib...");
4847
try {
49-
WrappedDataWatcher.Registry.get((Type) Byte.class);
48+
WrappedDataWatcher.Registry.getVectorSerializer();
5049
LOGGER.fine("ProtocolLib is now ready");
5150
} catch (Exception e) {
5251
LOGGER.severe("Failed to initialize ProtocolLib, images may not render for first player joining", e);

0 commit comments

Comments
 (0)