mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-14 01:04:12 +00:00
Fix #199 Vanilla saplings can't be analized in Treealyzer
This commit is contained in:
1 parent
40a58add89
commit
1bc5833e32
1 file changed
+5
-1
@@ -10,19 +10,23 @@
|
||||
******************************************************************************/
|
||||
package forestry.arboriculture.gui;
|
||||
|
||||
import forestry.api.genetics.AlleleManager;
|
||||
import forestry.core.gui.ContainerAlyzer;
|
||||
import forestry.core.config.ForestryItem;
|
||||
import forestry.arboriculture.items.ItemGermlingGE;
|
||||
import forestry.arboriculture.items.ItemTreealyzer.TreealyzerInventory;
|
||||
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
|
||||
public class ContainerTreealyzer extends ContainerAlyzer {
|
||||
|
||||
TreealyzerInventory inventory;
|
||||
private static Object[] acceptedEnergy = new Object[] {ForestryItem.honeydew, ForestryItem.honeyDrop};
|
||||
private static Object[] acceptedSpecimens = ArrayUtils.addAll(AlleleManager.ersatzSaplings.keySet().toArray(), ItemGermlingGE.class);
|
||||
|
||||
public ContainerTreealyzer(InventoryPlayer inventoryplayer, TreealyzerInventory inventory) {
|
||||
super(inventoryplayer, inventory, new Object[] { ForestryItem.honeydew, ForestryItem.honeyDrop }, new Object[] { ItemGermlingGE.class });
|
||||
super(inventoryplayer, inventory, acceptedEnergy, acceptedSpecimens);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user