Skip to content

Commit

Permalink
Re-add isPre1_20_1 method
Browse files Browse the repository at this point in the history
  • Loading branch information
Konicai committed Aug 29, 2023
1 parent 316c75b commit b029f4e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ public static BedrockCodec getBedrockCodec(int protocolVersion) {
return null;
}

/* Bedrock convenience methods to gatekeep features and easily remove the check on version removal */

public static boolean isPre1_20_10(GeyserSession session) {
return session.getUpstream().getProtocolVersion() < Bedrock_v594.CODEC.getProtocolVersion();
}

/**
* Gets the {@link PacketCodec} for Minecraft: Java Edition.
*
Expand Down

0 comments on commit b029f4e

Please sign in to comment.