java callback patch c/o OvermindDL1 <3