mirror of
https://github.com/AlmostReliable/almostunified.git
synced 2024-11-25 00:58:11 -05:00
Revert "fix stone strata detection not being applied to ingredients"
This reverts commit 3558ed2c30
.
This commit is contained in:
parent
a2411a7dd0
commit
5ab68ca4d6
2 changed files with 0 additions and 8 deletions
|
@ -83,11 +83,7 @@ public class RecipeContextImpl implements RecipeContext {
|
|||
if (object.get(RecipeConstants.ITEM) instanceof JsonPrimitive primitive) {
|
||||
ResourceLocation item = ResourceLocation.tryParse(primitive.getAsString());
|
||||
UnifyTag<Item> tag = getPreferredTagForItem(item);
|
||||
|
||||
if (tag != null) {
|
||||
// avoid replacing input items with tags in case the stone strata matters
|
||||
if (replacementMap.getStoneStrataHandler().isStoneStrataTag(tag)) return;
|
||||
|
||||
object.remove(RecipeConstants.ITEM);
|
||||
object.add(RecipeConstants.TAG, new JsonPrimitive(tag.location().toString()));
|
||||
}
|
||||
|
|
|
@ -103,8 +103,4 @@ public class ReplacementMap {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public StoneStrataHandler getStoneStrataHandler() {
|
||||
return stoneStrataHandler;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue