Skip to content

Commit

Permalink
only check version once
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Aug 3, 2023
1 parent fbd31c1 commit aa4aeef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/xyz/jpenilla/chesscraft/PieceHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ private static Transformation transformationFor(final ChessBoard board, final Pi
);
}

private static final boolean v1_19_X = Bukkit.getServer().getMinecraftVersion().startsWith("1.19");

private static void transformForVersion(final Quaternionf left) {
if (Bukkit.getServer().getMinecraftVersion().startsWith("1.19")) {
if (v1_19_X) {
// 1.19.x - nothing to do
return;
}
Expand Down

0 comments on commit aa4aeef

Please sign in to comment.