Skip to content

Commit

Permalink
Merge pull request Updated-NoCheatPlus#367 from skbeh/fix-below-1-12-…
Browse files Browse the repository at this point in the history
…loading

Fix loading on below 1.12
  • Loading branch information
Lysandr0 authored Aug 22, 2024
2 parents e4126cd + a2c81f7 commit dd2136e
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,17 @@ public class AttribUtil {

/** The Constant ID_SPRINT_BOOST. */
public static final UUID ID_SPRINT_BOOST = IdUtil.UUIDFromString("662A6B8D-DA3E-4C1C-8813-96EA6097278D");
public static final NamespacedKey NSID_SPRINT_BOOST = new NamespacedKey("minecraft", "sprinting");
public static final NamespacedKey NSID_SPRINT_BOOST;

static {
NamespacedKey springBoost;
try {
springBoost = NamespacedKey.minecraft("sprinting");
} catch (NoClassDefFoundError ignored) {
springBoost = null;
}
NSID_SPRINT_BOOST = springBoost;
}

/**
* Get a multiplier for an AttributeModifier.
Expand Down

0 comments on commit dd2136e

Please sign in to comment.