Fixed unexpected behavior on Fossil Cleaner and its recipe handling

Fixed missing Jade compatibility with Fossil Cleaner
This commit is contained in:
2026-05-20 18:29:39 -04:00
parent d2c5ca9e21
commit 9731bf6dc9
3 changed files with 54 additions and 7 deletions
@@ -59,8 +59,8 @@ public class FossilCleanerRecipe implements Recipe<FossilCleanerRecipeInput> {
if (level.isClientSide()) return false;
if (inputs.isEmpty()) return false;
// Single fossil block ingredient lives in machine slot 1 (input.getItem(1))
return inputs.get(0).test(input.getItem(1));
// Single fossil block ingredient lives in machine slot 0 (input.getItem(0))
return inputs.get(0).test(input.getItem(0));
}
//? if >1.20.1 {
@@ -10,12 +10,12 @@ import net.minecraft.world.SimpleContainer;
import java.util.List;
//? if >1.20.1 {
/*public record FossilCleanerRecipeInput(ItemStack material, ItemStack fuel) implements RecipeInput {
/*public record FossilCleanerRecipeInput(ItemStack fossil, ItemStack waterSlot) implements RecipeInput {
@Override
public ItemStack getItem(int index) {
return switch (index) {
case 0 -> material;
case 1 -> fuel;
case 0 -> fossil;
case 1 -> waterSlot;
default -> throw new IllegalArgumentException("Unexpected slot index: " + index);
};
}
@@ -27,8 +27,8 @@ import java.util.List;
}
*///?} else {
public class FossilCleanerRecipeInput extends SimpleContainer {
public FossilCleanerRecipeInput(ItemStack material, ItemStack fuel) {
super(material, fuel);
public FossilCleanerRecipeInput(ItemStack fossil, ItemStack waterSlot) {
super(fossil, waterSlot);
}
}
//?}