Moved rendering stuff from mod file into proxy so it doesn't crash on servers (it may not have done so before but oh well)