Skip to content

Commit

Permalink
Remove unused amethyst "lit" tag (chunky-dev#1623)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinTimeCuber authored and leMaik committed Sep 9, 2023
1 parent 8f12ab3 commit 2a0f5a3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 42 deletions.
22 changes: 0 additions & 22 deletions chunky/src/java/se/llbit/chunky/block/AmethystCluster.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2881,17 +2881,13 @@ public Block getBlockByTag(String namespacedName, Tag tag) {
case "lightning_rod":
return new LightningRod(BlockProvider.facing(tag, "up"), tag.get("Properties").get("powered").stringValue("false").equals("true"));
case "small_amethyst_bud":
return new AmethystCluster(name, Texture.smallAmethystBud, BlockProvider.facing(tag, "up"),
isLit(tag, true));
return new SpriteBlock(name, Texture.smallAmethystBud, BlockProvider.facing(tag, "up"));
case "medium_amethyst_bud":
return new AmethystCluster(name, Texture.mediumAmethystBud, BlockProvider.facing(tag, "up"),
isLit(tag, true));
return new SpriteBlock(name, Texture.mediumAmethystBud, BlockProvider.facing(tag, "up"));
case "large_amethyst_bud":
return new AmethystCluster(name, Texture.largeAmethystBud, BlockProvider.facing(tag, "up"),
isLit(tag, true));
return new SpriteBlock(name, Texture.largeAmethystBud, BlockProvider.facing(tag, "up"));
case "amethyst_cluster":
return new AmethystCluster(name, Texture.amethystCluster, BlockProvider.facing(tag, "up"),
isLit(tag, true));
return new SpriteBlock(name, Texture.amethystCluster, BlockProvider.facing(tag, "up"));
case "tinted_glass":
return new TintedGlass();
case "powder_snow":
Expand Down
16 changes: 4 additions & 12 deletions chunky/src/java/se/llbit/chunky/chunk/BlockPalette.java
Original file line number Diff line number Diff line change
Expand Up @@ -522,24 +522,16 @@ public static Map<String, Consumer<Block>> getDefaultMaterialProperties() {
}
});
materialProperties.put("minecraft:small_amethyst_bud", block -> {
if (block instanceof AmethystCluster && ((AmethystCluster) block).isLit()) {
block.emittance = 1.0f / 15f;
}
block.emittance = 1.0f / 15f;
});
materialProperties.put("minecraft:medium_amethyst_bud", block -> {
if (block instanceof AmethystCluster && ((AmethystCluster) block).isLit()) {
block.emittance = 1.0f / 15f * 2;
}
block.emittance = 1.0f / 15f * 2;
});
materialProperties.put("minecraft:large_amethyst_bud", block -> {
if (block instanceof AmethystCluster && ((AmethystCluster) block).isLit()) {
block.emittance = 1.0f / 15f * 4;
}
block.emittance = 1.0f / 15f * 4;
});
materialProperties.put("minecraft:amethyst_cluster", block -> {
if (block instanceof AmethystCluster && ((AmethystCluster) block).isLit()) {
block.emittance = 1.0f / 15f * 5;
}
block.emittance = 1.0f / 15f * 5;
});
materialProperties.put("minecraft:tinted_glass", glassConfig);
materialProperties.put("minecraft:sculk_sensor", block -> {
Expand Down

0 comments on commit 2a0f5a3

Please sign in to comment.