package ethanjones.modularworld.core.platform.android;

import com.badlogic.gdx.Application;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.files.FileHandle;
import ethanjones.modularworld.core.Branding;
import ethanjones.modularworld.core.compatibility.Compatibility;
import ethanjones.modularworld.core.events.EventHandler;
import ethanjones.modularworld.core.events.setting.AfterProcessSettingEvent;
import ethanjones.modularworld.core.settings.Settings;

public class AndroidCompatibility extends Compatibility {

  protected AndroidCompatibility() {
    super(Application.ApplicationType.Android);
  }

  @EventHandler
  public void compatibilitySettings(AfterProcessSettingEvent event) {
    Settings.renderer_block_viewDistance.getIntegerSetting().setValue(0);
  }

  @Override
  public FileHandle getBaseFolder() {
    return Gdx.files.external(Branding.NAME);
  }

  @Override
  public FileHandle getWorkingFolder() {
    return Gdx.files.internal(".");
  }
}

@@ -456,16 +456,70 @@
 ettings;
+%0Aimport ethanjones.modularworld.graphics.AssetManager;
 %0A%0Apublic
@@ -1019,11 +1019,120 @@
 .%22);%0A  %7D
+%0A%0A  @Override%0A  public void getAssets(AssetManager assetManager) %7B%0A    super.extractAssets(assetManager);%0A  %7D
 %0A%7D%0A

Fix android compatibility