Skip to content

Commit

Permalink
Add sign and sheep dying capability to Chemical Dyes (#2730)
Browse files Browse the repository at this point in the history
  • Loading branch information
krossgg authored Jan 12, 2025
1 parent 309d4d4 commit d63c022
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/gregtechceu/gtceu/common/data/GTItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -2225,12 +2225,13 @@ public Component getItemName(ItemStack stack) {
.onRegister(attach(new MetaMachineConfigCopyBehaviour()))
.register();

public static final ItemEntry<Item>[] DYE_ONLY_ITEMS = new ItemEntry[DyeColor.values().length];
public static final ItemEntry<DyeItem>[] DYE_ONLY_ITEMS = new ItemEntry[DyeColor.values().length];
static {
DyeColor[] colors = DyeColor.values();
for (int i = 0; i < colors.length; i++) {
var dyeColor = colors[i];
DYE_ONLY_ITEMS[i] = REGISTRATE.item("chemical_%s_dye".formatted(dyeColor.getName()), Item::new)
DYE_ONLY_ITEMS[i] = REGISTRATE
.item("chemical_%s_dye".formatted(dyeColor.getName()), (props) -> new DyeItem(dyeColor, props))
.lang("Chemical %s Dye".formatted(toEnglishName(dyeColor.getName())))
.tag(TagUtil.createItemTag("dyes/" + dyeColor.getName()))
.register();
Expand Down

0 comments on commit d63c022

Please sign in to comment.