From ae16d9bdd2c4c5e1f160c2a7ce1db4f4aa3f0408 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 10 May 2018 07:58:16 -0400 Subject: [PATCH] runescape-client: export addBoundary --- runescape-client/src/main/java/PacketBuffer.java | 8 ++++---- runescape-client/src/main/java/Region.java | 3 ++- runescape-client/src/main/java/class24.java | 8 ++++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/runescape-client/src/main/java/PacketBuffer.java b/runescape-client/src/main/java/PacketBuffer.java index 408e45ea67b..fb579d8e01d 100644 --- a/runescape-client/src/main/java/PacketBuffer.java +++ b/runescape-client/src/main/java/PacketBuffer.java @@ -249,7 +249,7 @@ static final void addObject(int var0, int var1, int var2, int var3, int var4, in var22 = new DynamicObject(var3, 0, var4, var0, var1, var2, var8.animationId, true, (Renderable)null); } - var6.method2909(var0, var1, var2, var16, (Renderable)var22, (Renderable)null, class50.field454[var4], 0, var19, var21); + var6.addBoundary(var0, var1, var2, var16, (Renderable)var22, (Renderable)null, class50.field454[var4], 0, var19, var21); if(var4 == 0) { if(var8.clipped) { class50.field449[var0][var1][var2] = 50; @@ -303,7 +303,7 @@ static final void addObject(int var0, int var1, int var2, int var3, int var4, in var22 = new DynamicObject(var3, 1, var4, var0, var1, var2, var8.animationId, true, (Renderable)null); } - var6.method2909(var0, var1, var2, var16, (Renderable)var22, (Renderable)null, class50.field453[var4], 0, var19, var21); + var6.addBoundary(var0, var1, var2, var16, (Renderable)var22, (Renderable)null, class50.field453[var4], 0, var19, var21); if(var8.clipped) { if(var4 == 0) { class50.field449[var0][var1][var2 + 1] = 50; @@ -334,7 +334,7 @@ static final void addObject(int var0, int var1, int var2, int var3, int var4, in var30 = new DynamicObject(var3, 2, var28, var0, var1, var2, var8.animationId, true, (Renderable)null); } - var6.method2909(var0, var1, var2, var16, (Renderable)var29, (Renderable)var30, class50.field454[var4], class50.field454[var28], var19, var21); + var6.addBoundary(var0, var1, var2, var16, (Renderable)var29, (Renderable)var30, class50.field454[var4], class50.field454[var28], var19, var21); if(var8.modelClipped) { if(var4 == 0) { MouseRecorder.field534[var0][var1][var2] |= 585; @@ -366,7 +366,7 @@ static final void addObject(int var0, int var1, int var2, int var3, int var4, in var22 = new DynamicObject(var3, 3, var4, var0, var1, var2, var8.animationId, true, (Renderable)null); } - var6.method2909(var0, var1, var2, var16, (Renderable)var22, (Renderable)null, class50.field453[var4], 0, var19, var21); + var6.addBoundary(var0, var1, var2, var16, (Renderable)var22, (Renderable)null, class50.field453[var4], 0, var19, var21); if(var8.clipped) { if(var4 == 0) { class50.field449[var0][var1][var2 + 1] = 50; diff --git a/runescape-client/src/main/java/Region.java b/runescape-client/src/main/java/Region.java index 9df641e2215..32e02c8cea0 100644 --- a/runescape-client/src/main/java/Region.java +++ b/runescape-client/src/main/java/Region.java @@ -415,7 +415,8 @@ public void addItemPile(int var1, int var2, int var3, int var4, Renderable var5, @ObfuscatedSignature( signature = "(IIIILdz;Ldz;IIJI)V" ) - public void method2909(int var1, int var2, int var3, int var4, Renderable var5, Renderable var6, int var7, int var8, long var9, int var11) { + @Export("addBoundary") + public void addBoundary(int var1, int var2, int var3, int var4, Renderable var5, Renderable var6, int var7, int var8, long var9, int var11) { if(var5 != null || var6 != null) { WallObject var12 = new WallObject(); var12.hash = var9; diff --git a/runescape-client/src/main/java/class24.java b/runescape-client/src/main/java/class24.java index f20159d26ec..d19fba952d8 100644 --- a/runescape-client/src/main/java/class24.java +++ b/runescape-client/src/main/java/class24.java @@ -698,7 +698,7 @@ static final void method459(int var0, int var1, int var2, int var3, int var4, in var29 = new DynamicObject(var4, 0, var5, var12, var2, var3, var15.animationId, true, (Renderable)null); } - var42.method2909(var0, var2, var3, var23, (Renderable)var29, (Renderable)null, class50.field454[var5], 0, var26, var28); + var42.addBoundary(var0, var2, var3, var23, (Renderable)var29, (Renderable)null, class50.field454[var5], 0, var26, var28); if(var15.clipType != 0) { var14.removeWall(var2, var3, var6, var5, var15.blocksProjectile); } @@ -709,7 +709,7 @@ static final void method459(int var0, int var1, int var2, int var3, int var4, in var29 = new DynamicObject(var4, 1, var5, var12, var2, var3, var15.animationId, true, (Renderable)null); } - var42.method2909(var0, var2, var3, var23, (Renderable)var29, (Renderable)null, class50.field453[var5], 0, var26, var28); + var42.addBoundary(var0, var2, var3, var23, (Renderable)var29, (Renderable)null, class50.field453[var5], 0, var26, var28); if(var15.clipType != 0) { var14.removeWall(var2, var3, var6, var5, var15.blocksProjectile); } @@ -727,7 +727,7 @@ static final void method459(int var0, int var1, int var2, int var3, int var4, in var31 = new DynamicObject(var4, 2, var35, var12, var2, var3, var15.animationId, true, (Renderable)null); } - var42.method2909(var0, var2, var3, var23, (Renderable)var30, (Renderable)var31, class50.field454[var5], class50.field454[var35], var26, var28); + var42.addBoundary(var0, var2, var3, var23, (Renderable)var30, (Renderable)var31, class50.field454[var5], class50.field454[var35], var26, var28); if(var15.clipType != 0) { var14.removeWall(var2, var3, var6, var5, var15.blocksProjectile); } @@ -738,7 +738,7 @@ static final void method459(int var0, int var1, int var2, int var3, int var4, in var29 = new DynamicObject(var4, 3, var5, var12, var2, var3, var15.animationId, true, (Renderable)null); } - var42.method2909(var0, var2, var3, var23, (Renderable)var29, (Renderable)null, class50.field453[var5], 0, var26, var28); + var42.addBoundary(var0, var2, var3, var23, (Renderable)var29, (Renderable)null, class50.field453[var5], 0, var26, var28); if(var15.clipType != 0) { var14.removeWall(var2, var3, var6, var5, var15.blocksProjectile); }