Small update of #1241
Added compat function from https://github.com/otland/forgottenserver/commit/70855f087f836360142c1eb2c19efd7c159144fe