Revert "Fixes after changes in libgdx API"

This reverts commit 844bc3a03d7f5c8fa19c8d58bc93e8ca3c2983e7. (after people from libgdx changed their mind after breaking api)