make items darker in pause menu
This commit is contained in:
@@ -252,7 +252,7 @@ window.BlockRenderer = class {
|
||||
}
|
||||
}
|
||||
|
||||
renderGuiBlock(group, block, x, y, size) {
|
||||
renderGuiBlock(group, block, x, y, size, brightness) {
|
||||
this.tessellator.startDrawing();
|
||||
|
||||
let boundingBox = block.getBoundingBox(null, 0, 0, 0);
|
||||
@@ -269,6 +269,9 @@ window.BlockRenderer = class {
|
||||
break;
|
||||
}
|
||||
|
||||
// Change brightness
|
||||
this.tessellator.transformBrightness(brightness);
|
||||
|
||||
// Create mesh
|
||||
let mesh = this.tessellator.draw(group);
|
||||
mesh.geometry.center();
|
||||
|
||||
Reference in New Issue
Block a user