Skip to content

Commit

Permalink
fix: allow candle preview to rotate through all candles in tag
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Jul 12, 2023
1 parent 7d57baa commit 7680852
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"C": {
"type": "modonomicon:tag",
"display": "occultism:candle_white",
"tag": "#minecraft:candles"
},
"G": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"C": {
"type": "modonomicon:tag",
"display": "occultism:candle_white",
"tag": "#minecraft:candles"
},
"G": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"C": {
"type": "modonomicon:tag",
"display": "occultism:candle_white",
"tag": "#minecraft:candles"
},
"G": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"C": {
"type": "modonomicon:tag",
"display": "occultism:candle_white",
"tag": "#minecraft:candles"
},
"G": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"C": {
"type": "modonomicon:tag",
"display": "occultism:candle_white",
"tag": "#minecraft:candles"
},
"G": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"C": {
"type": "modonomicon:tag",
"display": "occultism:candle_white",
"tag": "#minecraft:candles"
},
"G": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"C": {
"type": "modonomicon:tag",
"display": "occultism:candle_white",
"tag": "#minecraft:candles"
},
"G": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"C": {
"type": "modonomicon:tag",
"display": "occultism:candle_white",
"tag": "#minecraft:candles"
},
"G": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"C": {
"type": "modonomicon:tag",
"display": "occultism:candle_white",
"tag": "#minecraft:candles"
},
"N": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"C": {
"type": "modonomicon:tag",
"display": "occultism:candle_white",
"tag": "#minecraft:candles"
},
"P": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"C": {
"type": "modonomicon:tag",
"display": "occultism:candle_white",
"tag": "#minecraft:candles"
},
"W": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"C": {
"type": "modonomicon:tag",
"display": "occultism:candle_white",
"tag": "#minecraft:candles"
},
"G": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
},
"C": {
"type": "modonomicon:tag",
"display": "occultism:candle_white",
"tag": "#minecraft:candles"
},
"N": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,11 +356,10 @@ private MappingBuilder display(char c, Supplier<? extends Block> display) {
return this.element(c, json);
}

private MappingBuilder tag(char c, TagKey<Block> tag, Supplier<? extends Block> display) {
private MappingBuilder tag(char c, TagKey<Block> tag) {
JsonObject json = new JsonObject();
json.addProperty("type", "modonomicon:tag");
json.addProperty("tag", "#" + tag.location());
json.addProperty("display", ForgeRegistries.BLOCKS.getKey(display.get()).toString());
return this.element(c, json);
}

Expand All @@ -369,7 +368,7 @@ private MappingBuilder bowl() {
}

private MappingBuilder candle() {
return this.tag('C', OccultismTags.CANDLES, OccultismBlocks.CANDLE_WHITE);
return this.tag('C', OccultismTags.CANDLES);
}

private MappingBuilder whiteChalk() {
Expand Down

0 comments on commit 7680852

Please sign in to comment.