fix for issue #1116 (NPE in TerrainGridAlphaMapTest)

accellbaker
Stephen Gold 6 years ago
parent 1687d34eb7
commit 5586c28c95
  1. 4
      jme3-examples/src/main/java/jme3test/terrain/TerrainGridAlphaMapTest.java

@ -294,7 +294,9 @@ public class TerrainGridAlphaMapTest extends SimpleApplication {
TerrainGridAlphaMapTest.this.down = false;
}
} else if (name.equals("Jumps")) {
TerrainGridAlphaMapTest.this.player3.jump();
if (usePhysics && keyPressed) {
player3.jump();
}
}
}
};

Loading…
Cancel
Save