mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-23 21:39:51 +00:00
Clean up uses of Blocks.air
This commit is contained in:
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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user