Skip to content

Commit 0927a47

Browse files
committed
Fixed compatibility with 1.19
1 parent 3b8652c commit 0927a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bukkit-1.17/src/main/java/net/badlion/bukkitapi/BukkitPluginMessageSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public BukkitPluginMessageSender(AbstractBukkitBadlionPlugin apiBukkit) {
126126
throw new RuntimeException("Failed to find EntityPlayer.playerConnection");
127127
}
128128

129-
if (this.versionSuffix.contains("v1_18")) {
129+
if (!this.versionSuffix.contains("v1_17")) {
130130
final Class<?> packet1_18Class = this.getClass("net.minecraft.network.protocol.Packet");
131131

132132
this.sendPacketMethod = this.getMethod(playerConnectionClass, "a", packet1_18Class);

0 commit comments

Comments
 (0)