Skip to content

Commit

Permalink
Velocity modern forwarding support doesn't exist pre-1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Camotoy committed Jun 17, 2022
1 parent a46f43d commit 6e2c19f
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -216,7 +216,9 @@ public class ClassNames {

if (paperConfig != null) {
Field velocitySupport = getField(paperConfig, "velocitySupport");
PAPER_VELOCITY_SUPPORT = () -> castedStaticBooleanValue(velocitySupport);
// velocitySupport field is null pre-1.13
PAPER_VELOCITY_SUPPORT = velocitySupport != null ?
() -> castedStaticBooleanValue(velocitySupport) : null;
} else {
PAPER_VELOCITY_SUPPORT = null;
}
Expand Down

0 comments on commit 6e2c19f

Please sign in to comment.