mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-21 04:22:14 +00:00
Button works!
This commit is contained in:
1 parent
6aa1a877e5
commit
9834066b4b
6 files changed
+29
-20
No files matched your search
@@ -32,18 +32,14 @@ public final class FluidRecipe {
|
||||
}
|
||||
}
|
||||
|
||||
public static List<OrderStack<?>> getPackageInputs(IRecipeHandler recipe, int index) {
|
||||
public static List<OrderStack<?>> getPackageInputs(IRecipeHandler recipe, int index, boolean priority) {
|
||||
TemplateRecipeHandler tRecipe = (TemplateRecipeHandler) recipe;
|
||||
if (tRecipe == null || !IdentifierMap.containsKey(tRecipe.getOverlayIdentifier())) return new ArrayList<>();
|
||||
if (tRecipe.getOverlayIdentifier() == null) return getPackageInputsLegacy(recipe, index);
|
||||
IRecipeExtractor extractor = IdentifierMap.get(tRecipe.getOverlayIdentifier());
|
||||
if (extractor == null) return new ArrayList<>();
|
||||
List<PositionedStack> tmp = new ArrayList<>(tRecipe.getIngredientStacks(index));
|
||||
FluidPrioritization fluid = FluidPrioritization.ENABLED;
|
||||
switch(fluid) {
|
||||
case ENABLED:
|
||||
MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText("hi"));
|
||||
|
||||
if (priority) {
|
||||
for (int i = 0; i < tmp.size(); i++) {
|
||||
if(tmp.get(i).toString().contains("GregTech_FluidDisplay")) {
|
||||
MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText(String.valueOf(tmp.size())));
|
||||
|
||||
Reference in new issue
Block a user