mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-03 00:38:00 +00:00
Remove unneeded value caching
This commit is contained in:
@@ -13,17 +13,11 @@ import java.awt.*;
|
||||
public class DSceneObjects extends AbstractDebugger {
|
||||
|
||||
private boolean enabled;
|
||||
private long lastCheck = System.currentTimeMillis();
|
||||
private int cached;
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
if (System.currentTimeMillis() - lastCheck > 1000L) {
|
||||
lastCheck = System.currentTimeMillis();
|
||||
cached = SceneObjects.getNearest().length;
|
||||
}
|
||||
PaintDebugger p = Context.getInstance().getPaintDebugger();
|
||||
p.addLine("Close SceneObjects: " + cached);
|
||||
p.addLine("Close SceneObjects: " + SceneObjects.getNearest().length);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user