Skip to content

Commit

Permalink
Fix item attribute modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Camotoy committed Jun 14, 2024
1 parent a9ba1ad commit 7e87af7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ private static String attributeToLore(ItemAttributeModifiers.AttributeModifier m
return null;
}

String name = modifier.getName().replace("minecraft:", "");
String name = modifier.getId().asMinimalString();
// the namespace does not need to be present, but if it is, the java client ignores it as of pre-1.20.5

ModifierOperation operation = modifier.getOperation();
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ websocket = "1.5.1"
protocol = "3.0.0.Beta2-20240606.172607-7"
raknet = "1.0.0.CR3-20240416.144209-1"
mcauthlib = "e5b0bcc"
mcprotocollib = "f9cc9ee6"
mcprotocollib = "dcf9d02"
adventure = "4.14.0"
adventure-platform = "4.3.0"
junit = "5.9.2"
Expand Down

0 comments on commit 7e87af7

Please sign in to comment.