Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Octavia Togami <[email protected]>
  • Loading branch information
me4502 and octylFractal committed Jul 24, 2024
1 parent ce4b29f commit 4a5e77e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public static Entity adapt(org.bukkit.entity.Entity entity) {
*/
public static Material adapt(ItemType itemType) {
checkNotNull(itemType);
var key = checkNotNull(NamespacedKey.fromString(itemType.id()), "Item type key is invalid");
NamespacedKey key = checkNotNull(NamespacedKey.fromString(itemType.id()), "Item type key is invalid");
return Registry.MATERIAL.get(key);
}

Expand All @@ -347,7 +347,7 @@ public static Material adapt(ItemType itemType) {
*/
public static Material adapt(BlockType blockType) {
checkNotNull(blockType);
var key = checkNotNull(NamespacedKey.fromString(blockType.id()), "Item type key is invalid");
NamespacedKey key = checkNotNull(NamespacedKey.fromString(blockType.id()), "Block type key is invalid");
return Registry.MATERIAL.get(key);
}

Expand Down

0 comments on commit 4a5e77e

Please sign in to comment.