Skip to content

Commit

Permalink
fix lighting with hellstone
Browse files Browse the repository at this point in the history
  • Loading branch information
Pannoniae committed Jul 3, 2024
1 parent bb0c4b5 commit efea49a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/util/Blocks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static bool isFullBlock(int id) {
public static Block BASALT = register(new Block(4, "Basalt", BlockModel.makeCube(Block.cubeUVs(4, 0))));
public static Block STONE = register(new Block(5, "Stone", BlockModel.makeCube(Block.cubeUVs(5, 0))));
public static Block GRAVEL = register(new Block(33, "Gravel", BlockModel.makeCube(Block.cubeUVs(15, 0))));
public static Block HELLSTONE = register(new Block(34, "HellStone", BlockModel.makeCube(Block.cubeUVs(1, 1))).light(15));
public static Block HELLSTONE = register(new Block(34, "Hellstone", BlockModel.makeCube(Block.cubeUVs(1, 1))).light(15));

public static Block GLASS = register(new Block(6, "Glass", BlockModel.makeCube(Block.cubeUVs(6, 0)))
.transparency()
Expand Down
4 changes: 3 additions & 1 deletion src/world/worldgen/OverworldChunkGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public void generate(ChunkCoord coord) {
//Console.Out.WriteLine(flatNoise);

chunk.setBlock(x, 0, z, Blocks.HELLSTONE.id);

// hack until we can propagate them properly AND cheaply
chunk.setBlockLight(x, 0, z, Blocks.HELLSTONE.lightLevel);

for (int y = 1; y < World.WORLDHEIGHT * Chunk.CHUNKSIZE; y++) {
if (y < flatNoise) {
chunk.setBlock(x, y, z, Blocks.STONE.id);
Expand Down

0 comments on commit efea49a

Please sign in to comment.