Update to 1.21 (#71)
This commit is contained in:
parent
f515fca9af
commit
6b865f6fd0
2 changed files with 7 additions and 7 deletions
|
|
@ -45,7 +45,7 @@ public class Config
|
|||
|
||||
private static boolean validateItemName(final Object obj)
|
||||
{
|
||||
return obj instanceof String itemName && BuiltInRegistries.ITEM.containsKey(new ResourceLocation(itemName));
|
||||
return obj instanceof String itemName && BuiltInRegistries.ITEM.containsKey(ResourceLocation.parse(itemName));
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
|
|
@ -57,7 +57,7 @@ public class Config
|
|||
|
||||
// convert the list of strings into a set of items
|
||||
items = ITEM_STRINGS.get().stream()
|
||||
.map(itemName -> BuiltInRegistries.ITEM.get(new ResourceLocation(itemName)))
|
||||
.map(itemName -> BuiltInRegistries.ITEM.get(ResourceLocation.parse(itemName)))
|
||||
.collect(Collectors.toSet());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue