mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-26 07:03:05 +00:00
[[email protected]] { Issue #35 } Use Reflection to add boxes to carpenter
This commit is contained in:
1 parent
4a5f4d62ba
commit
72590e79f5
4 files changed
+39
-7
No files matched your search
@@ -56,10 +56,20 @@ public class Carpenter {
|
||||
public Add(Recipe recipe) {
|
||||
super("Forestry Carpenter", MachineCarpenter.RecipeManager.recipes, recipe);
|
||||
|
||||
//The Carpenter has a list of valid Fluids, access them via Relfection because of private
|
||||
// The Carpenter has a list of valid Fluids, access them via
|
||||
// Relfection because of private
|
||||
if (recipe.getLiquid() != null)
|
||||
ForestryHelper.addCarpenterRecipeFluids(recipe.getLiquid().getFluid());
|
||||
|
||||
if(!RecipeManager.isBox(recipe.getBox())){
|
||||
ForestryHelper.addCarpenterRecipeBox(recipe.getBox());
|
||||
}
|
||||
}
|
||||
|
||||
public void apply() {
|
||||
Recipe r = (MachineCarpenter.Recipe)recipe;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
|
||||
Reference in new issue
Block a user