mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 14:24:42 +00:00
Update to 1.12.1
This commit is contained in:
1 parent
8ffdba5021
commit
9269af7a13
4 files changed
+19
-13
No files matched your search
@@ -209,9 +209,13 @@ public class PluginNatura extends BlankForestryPlugin {
|
||||
try {
|
||||
maxAge = (int)block.getClass().getDeclaredMethod("getMaxAge").invoke(block);
|
||||
seedItem = block.getPickBlock(block.getBlockState().getBaseState(), null, null, null, null);
|
||||
} catch (Exception _) {return;} // if this fails just ignore the error.
|
||||
} catch (Exception ignored) {
|
||||
return;
|
||||
}
|
||||
Log.info("[PluginNatura] Addding crop '{}'", itemStack);
|
||||
if(seedItem == null) return;
|
||||
if (seedItem.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
FarmRegistry.getInstance().registerFarmables("farmWheat",
|
||||
new FarmableAgingCrop(
|
||||
|
||||
Reference in new issue
Block a user