Revert "fix stone strata detection not being applied to ingredients"

This reverts commit 3558ed2c30.
This commit is contained in:
Relentless 2022-11-21 14:41:55 +01:00
parent a2411a7dd0
commit 5ab68ca4d6
No known key found for this signature in database
GPG key ID: 759D97B8C6F25265
2 changed files with 0 additions and 8 deletions

View file

@ -83,11 +83,7 @@ public class RecipeContextImpl implements RecipeContext {
if (object.get(RecipeConstants.ITEM) instanceof JsonPrimitive primitive) { if (object.get(RecipeConstants.ITEM) instanceof JsonPrimitive primitive) {
ResourceLocation item = ResourceLocation.tryParse(primitive.getAsString()); ResourceLocation item = ResourceLocation.tryParse(primitive.getAsString());
UnifyTag<Item> tag = getPreferredTagForItem(item); UnifyTag<Item> tag = getPreferredTagForItem(item);
if (tag != null) { 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.remove(RecipeConstants.ITEM);
object.add(RecipeConstants.TAG, new JsonPrimitive(tag.location().toString())); object.add(RecipeConstants.TAG, new JsonPrimitive(tag.location().toString()));
} }

View file

@ -103,8 +103,4 @@ public class ReplacementMap {
} }
return null; return null;
} }
public StoneStrataHandler getStoneStrataHandler() {
return stoneStrataHandler;
}
} }