Fix crash with covers.

This commit is contained in:
raoulvdberge
2018-07-04 20:32:52 +02:00
parent 34536ec96a
commit c3a8484190

View File

@@ -175,6 +175,10 @@ public class CoverManager {
return null; return null;
} }
return block.getStateFromMeta(item.getItem().getMetadata(item)); try {
return block.getStateFromMeta(item.getItem().getMetadata(item));
} catch (Exception e) {
return null;
}
} }
} }