mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-12-26 10:58:03 +01:00
I am an idiot... i change stuff around and forget to set default to false...
This commit is contained in:
parent
eda0dd5de6
commit
07db2f8208
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user