mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 17:18:37 +01:00
Don't lowercase item names in IItemDb#get(String, int) (#3636)
Co-authored-by: JRoy <joshroy126@gmail.com>
This commit is contained in:
parent
2f45d3edf3
commit
2b7a4364b1
@ -9,7 +9,6 @@ import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* Provides access to the current item alias registry.
|
||||
@ -29,7 +28,7 @@ public interface IItemDb {
|
||||
* @throws Exception if the item stack cannot be created
|
||||
*/
|
||||
default ItemStack get(final String name, final int quantity) throws Exception {
|
||||
final ItemStack stack = get(name.toLowerCase(Locale.ENGLISH));
|
||||
final ItemStack stack = get(name);
|
||||
stack.setAmount(quantity);
|
||||
return stack;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user