Clean up uses of Blocks.air

This commit is contained in:
mezz committed 2016-03-06 10:32:29 -08:00
1 parent 4677ae7d54
commit 0b31054a58
4 files changed
+6 -6

No files matched your search

@@ -214,7 +214,7 @@ public class PluginFarming extends BlankForestryPlugin {
try {
Block sapling = ItemStackUtil.getBlockFromRegistry(saplingString);
if (sapling == null || sapling == Blocks.air) {
if (sapling == null) {
throw new IllegalArgumentException("can't find block for " + saplingString);
}
int saplingMeta = Integer.parseInt(saplingMetaString);
@@ -262,7 +262,7 @@ public class PluginFarming extends BlankForestryPlugin {
throw new IllegalArgumentException("can't find item for " + items[0]);
}
Block crop = ItemStackUtil.getBlockFromRegistry(items[2]);
if (crop == null || crop == Blocks.air) {
if (crop == null) {
throw new IllegalArgumentException("can't find block for " + items[2]);
}