Fix dyes tag containing dye items instead of tags
Update generated data
This commit is contained in:
parent
6e8b976089
commit
df04ae11ef
3 changed files with 21 additions and 19 deletions
|
@ -2,7 +2,9 @@
|
|||
"replace": false,
|
||||
"values": [
|
||||
"minecraft:dirt",
|
||||
"minecraft:grass_block",
|
||||
"minecraft:coarse_dirt",
|
||||
"minecraft:podzol"
|
||||
"minecraft:podzol",
|
||||
"minecraft:mycelium"
|
||||
]
|
||||
}
|
|
@ -1,21 +1,21 @@
|
|||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"minecraft:white_dye",
|
||||
"minecraft:orange_dye",
|
||||
"minecraft:magenta_dye",
|
||||
"minecraft:light_blue_dye",
|
||||
"minecraft:yellow_dye",
|
||||
"minecraft:lime_dye",
|
||||
"minecraft:pink_dye",
|
||||
"minecraft:gray_dye",
|
||||
"minecraft:light_gray_dye",
|
||||
"minecraft:cyan_dye",
|
||||
"minecraft:purple_dye",
|
||||
"minecraft:blue_dye",
|
||||
"minecraft:brown_dye",
|
||||
"minecraft:green_dye",
|
||||
"minecraft:red_dye",
|
||||
"minecraft:black_dye"
|
||||
"#forge:dyes/white",
|
||||
"#forge:dyes/orange",
|
||||
"#forge:dyes/magenta",
|
||||
"#forge:dyes/light_blue",
|
||||
"#forge:dyes/yellow",
|
||||
"#forge:dyes/lime",
|
||||
"#forge:dyes/pink",
|
||||
"#forge:dyes/gray",
|
||||
"#forge:dyes/light_gray",
|
||||
"#forge:dyes/cyan",
|
||||
"#forge:dyes/purple",
|
||||
"#forge:dyes/blue",
|
||||
"#forge:dyes/brown",
|
||||
"#forge:dyes/green",
|
||||
"#forge:dyes/red",
|
||||
"#forge:dyes/black"
|
||||
]
|
||||
}
|
|
@ -146,7 +146,7 @@ public class ForgeItemTagsProvider extends ItemTagsProvider
|
|||
copy(Tags.Blocks.SUPPORTS_CONDUIT, Tags.Items.SUPPORTS_CONDUIT);
|
||||
}
|
||||
|
||||
private void addColored(Consumer<Item> consumer, Tag<Item> group, String pattern)
|
||||
private void addColored(Consumer<Tag<Item>> consumer, Tag<Item> group, String pattern)
|
||||
{
|
||||
String prefix = group.getId().getPath().toUpperCase(Locale.ENGLISH) + '_';
|
||||
for (DyeColor color : DyeColor.values())
|
||||
|
@ -157,7 +157,7 @@ public class ForgeItemTagsProvider extends ItemTagsProvider
|
|||
if (item == null || item == Items.AIR)
|
||||
throw new IllegalStateException("Unknown vanilla item: " + key.toString());
|
||||
getBuilder(tag).add(item);
|
||||
consumer.accept(item);
|
||||
consumer.accept(tag);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue