runescape-client: fix the thing

This commit is contained in:
ThatGamerBlue
2020-12-11 06:14:29 +00:00
parent f74baf08ce
commit 463bc42f5f
325 changed files with 35526 additions and 35531 deletions

View File

@@ -20,22 +20,22 @@ public class NodeDeque {
Node current;
public NodeDeque() {
this.sentinel = new Node();
this.sentinel.previous = this.sentinel;
this.sentinel.next = this.sentinel;
}
this.sentinel = new Node(); // L: 6
this.sentinel.previous = this.sentinel; // L: 10
this.sentinel.next = this.sentinel; // L: 11
} // L: 12
@ObfuscatedName("h")
@Export("clear")
public void clear() {
while (true) {
Node var1 = this.sentinel.previous;
if (var1 == this.sentinel) {
this.current = null;
return;
Node var1 = this.sentinel.previous; // L: 16
if (var1 == this.sentinel) { // L: 17
this.current = null; // L: 20
return; // L: 21
}
var1.remove();
var1.remove(); // L: 18
}
}
@@ -45,15 +45,15 @@ public class NodeDeque {
)
@Export("addFirst")
public void addFirst(Node var1) {
if (var1.next != null) {
if (var1.next != null) { // L: 24
var1.remove();
}
var1.next = this.sentinel.next;
var1.previous = this.sentinel;
var1.next.previous = var1;
var1.previous.next = var1;
}
var1.next = this.sentinel.next; // L: 25
var1.previous = this.sentinel; // L: 26
var1.next.previous = var1; // L: 27
var1.previous.next = var1; // L: 28
} // L: 29
@ObfuscatedName("x")
@ObfuscatedSignature(
@@ -61,15 +61,15 @@ public class NodeDeque {
)
@Export("addLast")
public void addLast(Node var1) {
if (var1.next != null) {
if (var1.next != null) { // L: 32
var1.remove();
}
var1.next = this.sentinel;
var1.previous = this.sentinel.previous;
var1.next.previous = var1;
var1.previous.next = var1;
}
var1.next = this.sentinel; // L: 33
var1.previous = this.sentinel.previous; // L: 34
var1.next.previous = var1; // L: 35
var1.previous.next = var1; // L: 36
} // L: 37
@ObfuscatedName("t")
@ObfuscatedSignature(
@@ -77,12 +77,12 @@ public class NodeDeque {
)
@Export("removeLast")
public Node removeLast() {
Node var1 = this.sentinel.previous;
Node var1 = this.sentinel.previous; // L: 48
if (var1 == this.sentinel) {
return null;
return null; // L: 49
} else {
var1.remove();
return var1;
var1.remove(); // L: 50
return var1; // L: 51
}
}
@@ -92,12 +92,12 @@ public class NodeDeque {
)
@Export("removeFirst")
public Node removeFirst() {
Node var1 = this.sentinel.next;
Node var1 = this.sentinel.next; // L: 55
if (var1 == this.sentinel) {
return null;
return null; // L: 56
} else {
var1.remove();
return var1;
var1.remove(); // L: 57
return var1; // L: 58
}
}
@@ -107,13 +107,13 @@ public class NodeDeque {
)
@Export("last")
public Node last() {
Node var1 = this.sentinel.previous;
if (var1 == this.sentinel) {
this.current = null;
return null;
Node var1 = this.sentinel.previous; // L: 62
if (var1 == this.sentinel) { // L: 63
this.current = null; // L: 64
return null; // L: 65
} else {
this.current = var1.previous;
return var1;
this.current = var1.previous; // L: 67
return var1; // L: 68
}
}
@@ -123,13 +123,13 @@ public class NodeDeque {
)
@Export("first")
public Node first() {
Node var1 = this.sentinel.next;
if (var1 == this.sentinel) {
this.current = null;
return null;
Node var1 = this.sentinel.next; // L: 72
if (var1 == this.sentinel) { // L: 73
this.current = null; // L: 74
return null; // L: 75
} else {
this.current = var1.next;
return var1;
this.current = var1.next; // L: 77
return var1; // L: 78
}
}
@@ -139,13 +139,13 @@ public class NodeDeque {
)
@Export("previous")
public Node previous() {
Node var1 = this.current;
if (var1 == this.sentinel) {
this.current = null;
return null;
Node var1 = this.current; // L: 82
if (var1 == this.sentinel) { // L: 83
this.current = null; // L: 84
return null; // L: 85
} else {
this.current = var1.previous;
return var1;
this.current = var1.previous; // L: 87
return var1; // L: 88
}
}
@@ -155,13 +155,13 @@ public class NodeDeque {
)
@Export("next")
public Node next() {
Node var1 = this.current;
if (var1 == this.sentinel) {
this.current = null;
return null;
Node var1 = this.current; // L: 92
if (var1 == this.sentinel) { // L: 93
this.current = null; // L: 94
return null; // L: 95
} else {
this.current = var1.next;
return var1;
this.current = var1.next; // L: 97
return var1; // L: 98
}
}
@@ -171,13 +171,13 @@ public class NodeDeque {
)
@Export("NodeDeque_addBefore")
public static void NodeDeque_addBefore(Node var0, Node var1) {
if (var0.next != null) {
if (var0.next != null) { // L: 40
var0.remove();
}
var0.next = var1.next;
var0.previous = var1;
var0.next.previous = var0;
var0.previous.next = var0;
}
var0.next = var1.next; // L: 41
var0.previous = var1; // L: 42
var0.next.previous = var0; // L: 43
var0.previous.next = var0; // L: 44
} // L: 45
}