mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-22 13:09:44 +00:00
fix: exclude missing placeholder from raw material recipes
This commit is contained in:
1 parent
e2122ad822
commit
4e0d7a684e
3 files changed
+17
No files matched your search
@@ -220,6 +220,10 @@ public final class MicroRecipe$ implements IRecipe {
|
||||
|
||||
public int findMaterial(ItemStack item) {
|
||||
for (Tuple2<String, IMicroMaterial> entry : MicroMaterialRegistry.getIdMap()) {
|
||||
// The recovery placeholder exposes stone, but must never win a raw-material recipe lookup.
|
||||
if (entry._2() == MissingMicroMaterial$.MODULE$) {
|
||||
continue;
|
||||
}
|
||||
ItemStack materialItem = entry._2().getItem();
|
||||
if (Objects.equals(item.getItem(), materialItem.getItem())
|
||||
&& item.getItemDamage() == materialItem.getItemDamage()
|
||||
|
||||
Reference in new issue
Block a user