Skip to content

Commit

Permalink
Fix grass colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Luna0x01 committed Dec 29, 2024
1 parent f32fdca commit 6579543
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public ColorProviderRegistry() {

// TODO: Allow mods to install their own color resolvers here
private void installOverrides() {
this.registerBlocks(DefaultColorProviders.GRASS, Blocks.GRASS, Blocks.SUGARCANE, Blocks.TALLGRASS);
this.registerBlocks(DefaultColorProviders.GRASS, Blocks.GRASS, Blocks.SUGARCANE, Blocks.TALLGRASS, Blocks.DOUBLE_PLANT);
this.registerBlocks(DefaultColorProviders.FOLIAGE, Blocks.LEAVES, Blocks.LEAVES2, Blocks.VINE);
this.registerBlocks(new WaterBlockColors(), Blocks.WATER);
this.registerFluids(new WaterBlockColors(), Blocks.WATER, Blocks.FLOWING_WATER);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ClientChunkCacheMixin {
)
private void onChunkUnloaded(int x, int z, CallbackInfo ci) {
ChunkTrackerHolder.get((ClientWorld)this.world)
.onChunkStatusRemoved(x, z, ChunkStatus.FLAG_HAS_BLOCK_DATA);
.onChunkStatusRemoved(x, z, ChunkStatus.FLAG_ALL);
}

@Inject(
Expand All @@ -41,6 +41,6 @@ private void onChunkUnloaded(int x, int z, CallbackInfo ci) {
)
private void onChunkLoaded(int x, int z, CallbackInfoReturnable<Chunk> cir) {
ChunkTrackerHolder.get((ClientWorld)this.world)
.onChunkStatusAdded(x, z, ChunkStatus.FLAG_HAS_BLOCK_DATA);
.onChunkStatusAdded(x, z, ChunkStatus.FLAG_ALL);
}
}

0 comments on commit 6579543

Please sign in to comment.