Misc cleanup

This commit is contained in:
Anuken
2020-11-26 12:53:19 -05:00
parent 465219540c
commit 3fe4ae38b6
10 changed files with 43 additions and 33 deletions

View File

@@ -225,7 +225,7 @@ public class ContentParser{
currentContent = block;
read(() -> {
if(value.has("consumes")){
if(value.has("consumes") && value.get("consumes").isObject()){
for(JsonValue child : value.get("consumes")){
if(child.name.equals("item")){
block.consumes.item(find(ContentType.item, child.asString()));