Don't lowercase item names in IItemDb#get(String, int) (#3636)

Co-authored-by: JRoy <joshroy126@gmail.com>
This commit is contained in:
kmecpp 2021-01-01 23:16:24 -05:00 committed by GitHub
parent 2f45d3edf3
commit 2b7a4364b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}