BlocksRenderer light compressing & fix

This commit is contained in:
@clasher113
2023-11-22 19:35:56 +02:00
parent a48af43008
commit efdc494aaf
3 changed files with 39 additions and 22 deletions
+1
View File
@@ -38,6 +38,7 @@ void mouse_button_callback(GLFWwindow*, int button, int action, int) {
}
void key_callback(GLFWwindow*, int key, int scancode, int action, int /*mode*/) {
if (key == GLFW_KEY_UNKNOWN) return;
if (action == GLFW_PRESS) {
Events::_keys[key] = true;
Events::_frames[key] = Events::_current;