Someone is doing something wrong somewhere along the way, not sure where. But I too, was getting errors from zlib telling me that is_dark_mode is causing problems.
So here are the steps I took:
Is mafia up to date? Help -> Copyright Information -> says version 20.7, same as my jar file is...