Lowercase the provided ID in FlatItemDb#get

This commit is contained in:
md678685 2018-12-23 19:45:23 +00:00
parent cbcfad5b2e
commit 28559dda3a

View File

@ -98,7 +98,8 @@ public class FlatItemDb extends AbstractItemDb {
}
@Override
public ItemStack get(final String id) throws Exception {
public ItemStack get(String id) throws Exception {
id = id.toLowerCase();
final String[] split = id.split(":");
ItemData data = getByName(split[0]);