Fix for error.

This commit is contained in:
Brianna O'Keefe 2019-02-10 00:23:24 -05:00
parent 307b99c19d
commit 6681df1d6b

View File

@ -117,7 +117,12 @@ public class LevellingManager {
for (Material materialList : materialStorage) {
if (materialList == null) continue;
ItemStack is = materialList.getItemStack();
ItemStack is;
try {
is = materialList.getItemStack();
} catch (Exception ignored) {
continue;
}
if (blockMaterial != materialList.getItemStack().getType()) continue;
if (NMSVersion < 13) {