project: Injector add CheckCast support for copy classes

This commit is contained in:
Owain van Brakel
2021-12-15 17:15:19 +01:00
parent 8b80c0b71f
commit 0b91062e9d
3 changed files with 15 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ public class RuneLiteIterableLinkDeque implements Iterator<Link>
}
@Override
public Link next()
public FriendLoginUpdate next()
{
if (this.link == this.linkDeque.sentinel)
{
@@ -27,7 +27,7 @@ public class RuneLiteIterableLinkDeque implements Iterator<Link>
}
else
{
Link friendLoginUpdate = this.link;
FriendLoginUpdate friendLoginUpdate = (FriendLoginUpdate) this.link;
this.link = this.link.previous;
return friendLoginUpdate;