Fix RenderableContext didn't check if mapHandler is null in input()

This commit is contained in:
2021-03-08 08:45:26 +01:00
parent ad991fcf39
commit b259fc1a10

View File

@@ -61,8 +61,10 @@ public class RenderableContext implements Context, Updatable, Renderable {
} }
public void input(Window window) { public void input(Window window) {
if (mapHandler != null) {
mapHandler.input(window); mapHandler.input(window);
} }
}
@Override @Override
public void update(float dt) { public void update(float dt) {