Overflow fixes - should help bot stability on crowded worlds

This commit is contained in:
stormy committed 2024-03-07 14:36:49 +01:00
1 parent f91b4b9772
commit 38308f9c3c
2 files changed
+19

No files matched your search

+10
View File
@@ -29,6 +29,16 @@ public class Extension extends client implements IClient {
private boolean fatigueTraining;
private Extension() {
super();
// Increase the size of buffers to prevent overflowing on
// the incredibly crowded worlds of RSC Uranium.
// XXX this should be fixed on the server too...
super.mg = new ja(70000);
// overhead icons...
super.je = new int[512];
super.pe = new int[512];
super.jd = new int[512];
super.ak = new int[512];
}
public static void initHook() {
+9
View File
@@ -47,6 +47,15 @@ final class PaintListener implements IPaintListener {
*/
@Override
public void onPaint() {
/*
* renderbug workaround - prevent the texture cache index
* from overflowing
*/
if (k.e > (1 << 29)) {
k.e = 0;
}
drawGradient();
synchronized (dimension) {
if (!resized) {