Add low memory mode plugin

This commit is contained in:
Tomas Slusny
2018-01-24 12:46:14 -05:00
committed by Adam
parent b95a85cddf
commit 68ba5f40b6
5 changed files with 174 additions and 2 deletions

View File

@@ -396,6 +396,16 @@ public abstract class RSClientMixin implements RSClient
}
}
@Inject
@Override
public void changeMemoryMode(boolean lowMemory)
{
setLowMemory(lowMemory);
setRegionLowMemory(lowMemory);
setHighMemory(!lowMemory);
setOcLowDetail(lowMemory);
}
@FieldHook("skillExperiences")
@Inject
public static void experiencedChanged(int idx)