Skip to content

Commit 2852244

Browse files
committed
fix texture reloading
1 parent d6309f4 commit 2852244

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/terminalvelocitycabbage/exampleclient/GameInputHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.terminalvelocitycabbage.engine.client.input.InputHandler;
44
import com.terminalvelocitycabbage.engine.client.input.KeyBind;
55
import com.terminalvelocitycabbage.engine.client.renderer.components.Window;
6+
import com.terminalvelocitycabbage.engine.debug.Log;
67

78
import static org.lwjgl.glfw.GLFW.*;
89

@@ -44,8 +45,6 @@ public void init(Window window) {
4445
@Override
4546
public void processInput(KeyBind keyBind) {
4647

47-
reloadTexture = false;
48-
4948
//Escape closes the program by telling glfw that it should close
5049
if (keyBind.equalsKeyAndAction(CLOSE)) {
5150
setFocus(false);
@@ -55,6 +54,7 @@ public void processInput(KeyBind keyBind) {
5554

5655
if (keyBind.equalsKeyAndAction(RELOAD_TEXTURE)) {
5756
reloadTexture = true;
57+
Log.info("Reloading Texture...");
5858
}
5959

6060
//Process movement inputs

0 commit comments

Comments
 (0)