Skip to content

Commit

Permalink
Fix loading on below 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
skbeh committed Aug 20, 2024
1 parent e4126cd commit a2c81f7
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 a2c81f7

Please sign in to comment.