mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 12:32:23 +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
@@ -18,7 +18,6 @@ import java.io.File;
|
||||
import forestry.plugins.compat.PluginNatura;
|
||||
import net.minecraftforge.client.event.ModelRegistryEvent;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.RegistryEvent;
|
||||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
|
||||
@@ -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