GUI = new android.widget.PopupWindow(layout, dip2px(ctx, android.widget.LinearLayout.LayoutParams.WRAP_CONTENT), dip2px(ctx, android.widget.LinearLayout.LayoutParams.WRAP_CONTENT));
GUI.showAtLocation(ctx.getWindow().getDecorView(), android.view.Gravity.RIGHT | android.view.Gravity.BOTTOM, 100, 60)
} catch(err) {
print("Error: " + err)
}
}
}))
};
function leaveGame() {
ctx.runOnUiThread(new java.lang.Runnable({
run: function() {
if (GUI != null) {
GUI.dismiss()
}
}
}))
};
function modTick() {
if (mb) {
if (i == 1) {
Yone = getPlayerY();
i++
} else if (i == 3) {
i = 1;
Ytwo = getPlayerY() - Yone;
setVelY(getPlayerEnt(), Ytwo)
};
if (i != 1) {
i++
}
} else {
return null
}
}