Update Gravity.java

change