From 0b1d2be4a1d41b2ec02ce269ffeb30393ae00618 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 13 Sep 2015 19:40:08 -0400 Subject: [PATCH] still change if *1 --- .../net/runelite/deob/attributes/code/instructions/IMul.java | 4 ++-- .../runelite/deob/attributes/code/instructions/PutStatic.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/runelite/deob/attributes/code/instructions/IMul.java b/src/main/java/net/runelite/deob/attributes/code/instructions/IMul.java index a00009d5b4..3350195244 100644 --- a/src/main/java/net/runelite/deob/attributes/code/instructions/IMul.java +++ b/src/main/java/net/runelite/deob/attributes/code/instructions/IMul.java @@ -42,7 +42,7 @@ public class IMul extends Instruction // 'one' is encrypted and we want to decrypt it by dividing by one.encryption - if (other != 1 && other != 0) + //if (other != 1 && other != 0) { int o = other * DMath.modInverse(one.encryption); @@ -56,7 +56,7 @@ public class IMul extends Instruction PushConstantInstruction pci = (PushConstantInstruction) one.getPushed().getInstruction(); int other = (int) pci.getConstant().getObject(); - if (other != 1 && other != 0) + //if (other != 1 && other != 0) { int o = other * DMath.modInverse(two.encryption); diff --git a/src/main/java/net/runelite/deob/attributes/code/instructions/PutStatic.java b/src/main/java/net/runelite/deob/attributes/code/instructions/PutStatic.java index 08c44a7cb5..a769b4edd8 100644 --- a/src/main/java/net/runelite/deob/attributes/code/instructions/PutStatic.java +++ b/src/main/java/net/runelite/deob/attributes/code/instructions/PutStatic.java @@ -86,7 +86,7 @@ public class PutStatic extends Instruction implements SetFieldInstruction if (encryption.hasChange(pci)) return true; - if (value != 0 && value != 1) + //if (value != 0 && value != 1) { value = value * pair.getter;