diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java index 0a28dd3ca1..4e53ff7606 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitAdapter.java @@ -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); } @@ -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); }