OZMod port to use in libGdx