Update to 1.12.1

This commit is contained in:
mezz committed 2017-08-18 20:17:18 -07:00
1 parent 8ffdba5021
commit 9269af7a13
4 files changed
+19 -13

No files matched your search

-1
View File
@@ -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(