From 2852244b1f2ed1dcc698105b61ea82287da6cc42 Mon Sep 17 00:00:00 2001 From: Brandon Davis Date: Sun, 21 Feb 2021 15:02:37 -0600 Subject: [PATCH] fix texture reloading --- .../exampleclient/GameInputHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/terminalvelocitycabbage/exampleclient/GameInputHandler.java b/src/main/java/com/terminalvelocitycabbage/exampleclient/GameInputHandler.java index c53a1e9..f9c125c 100644 --- a/src/main/java/com/terminalvelocitycabbage/exampleclient/GameInputHandler.java +++ b/src/main/java/com/terminalvelocitycabbage/exampleclient/GameInputHandler.java @@ -3,6 +3,7 @@ import com.terminalvelocitycabbage.engine.client.input.InputHandler; import com.terminalvelocitycabbage.engine.client.input.KeyBind; import com.terminalvelocitycabbage.engine.client.renderer.components.Window; +import com.terminalvelocitycabbage.engine.debug.Log; import static org.lwjgl.glfw.GLFW.*; @@ -44,8 +45,6 @@ public void init(Window window) { @Override public void processInput(KeyBind keyBind) { - reloadTexture = false; - //Escape closes the program by telling glfw that it should close if (keyBind.equalsKeyAndAction(CLOSE)) { setFocus(false); @@ -55,6 +54,7 @@ public void processInput(KeyBind keyBind) { if (keyBind.equalsKeyAndAction(RELOAD_TEXTURE)) { reloadTexture = true; + Log.info("Reloading Texture..."); } //Process movement inputs