mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-16 16:05:13 -06:00
Refactored some code related to inv/sprite
This commit is contained in:
parent
77bfb744bc
commit
b57d5a0031
51 changed files with 686 additions and 625 deletions
|
|
@ -627,30 +627,4 @@ public final class Static280 {
|
|||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!wl", name = "a", descriptor = "(IIIIB)V")
|
||||
public static void updateContainer(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3) {
|
||||
@Pc(12) Inv local12 = (Inv) Inv.objectContainerCache.get((long) arg3);
|
||||
if (local12 == null) {
|
||||
local12 = new Inv();
|
||||
Inv.objectContainerCache.put(local12, (long) arg3);
|
||||
}
|
||||
if (arg1 >= local12.objectIds.length) {
|
||||
@Pc(39) int[] local39 = new int[arg1 + 1];
|
||||
@Pc(44) int[] local44 = new int[arg1 + 1];
|
||||
@Pc(46) int local46;
|
||||
for (local46 = 0; local46 < local12.objectIds.length; local46++) {
|
||||
local39[local46] = local12.objectIds[local46];
|
||||
local44[local46] = local12.anIntArray422[local46];
|
||||
}
|
||||
for (local46 = local12.objectIds.length; local46 < arg1; local46++) {
|
||||
local39[local46] = -1;
|
||||
local44[local46] = 0;
|
||||
}
|
||||
local12.objectIds = local39;
|
||||
local12.anIntArray422 = local44;
|
||||
}
|
||||
local12.objectIds[arg1] = arg0;
|
||||
local12.anIntArray422[arg1] = arg2;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue