Fix DynamicTree constructor for API compatibility.
@@ -177,8 +177,6 @@ public class DynamicTree {
this.name = name;
this.modId = modid;
- simpleVanillaSetup(BlockPlanks.EnumType.OAK);//Just default to Oak for the convenience of derivative mods
-
if(seq >= 0) {
setDynamicLeaves(modid, seq);
}
@@ -313,6 +311,8 @@ public class DynamicTree {
/** Used to register the recipes this tree uses. */
public void registerRecipes(IForgeRegistry<IRecipe> registry) {
+
+ if(primitiveSapling != null) {
//Creates a seed from a vanilla sapling and a wooden bowl
ItemStack saplingStack = new ItemStack(primitiveSapling.getBlock());
saplingStack.setItemDamage(primitiveSapling.getValue(BlockSapling.TYPE).getMetadata());
@@ -326,6 +326,8 @@ public class DynamicTree {
}
}
+ }
+
//////////////////////////////
// TREE PROPERTIES
