leaves properties now properly set their family when assigned to a species
@@ -455,6 +455,7 @@ public class Species extends RegistryEntry<Species> implements IResettable<Speci
public Species setLeavesProperties(LeavesProperties leavesProperties) {
this.leavesProperties = leavesProperties;
+ leavesProperties.setFamily(getFamily());
addValidLeafBlocks(leavesProperties);
return this;
}
@@ -467,13 +468,6 @@ public class Species extends RegistryEntry<Species> implements IResettable<Speci
return this.leavesProperties.getDynamicLeavesBlock();
}
- public DynamicLeavesBlock createLeavesBlock(LeavesProperties leavesProperties) {
-// DynamicLeavesBlock block = new DynamicLeavesBlock(leavesProperties);
-// block.setRegistryName(getRegistryName() + "_leaves");
-// LeavesPaging.addLeavesBlockForModId(block, getRegistryName().getNamespace());
- return null;
- }
-
public void addValidLeafBlocks (LeavesProperties... leaves){
for (LeavesProperties leaf : leaves) {
if (!this.validLeaves.contains(leaf))
