I am an idiot... i change stuff around and forget to set default to false...

This commit is contained in:
Alastair 2017-05-25 11:16:18 +01:00
parent eda0dd5de6
commit 07db2f8208
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,7 @@ public class CraftBukkit {
private Field playerConnection;
private Method sendPacket;
private boolean useEnumType = true;
private boolean useEnumType = false;
// Classes so it doesnt keep fetching them.
@ -53,12 +53,14 @@ public class CraftBukkit {
this.chatMessageTypeMethod = chatMessageTypeClass.getMethod("a", byte.class);
this.chatPacketConstructor = Class.forName(minecraftPackage + "PacketPlayOutChat").getConstructor(chatBaseComponent, chatMessageTypeClass);
useEnumType = true;
}
catch(ClassNotFoundException e) {
plugin.getLogger().info("Old version detected, changing chat method");
this.chatPacketConstructor = Class.forName(minecraftPackage + "PacketPlayOutChat").getConstructor(chatBaseComponent, byte.class);
}
System.out.println(useEnumType);
if(chatSerialClass != null){
this.serializeMessage = chatSerialClass.getMethod("a", String.class);