From ac24aa6ce32a77a3ea2f0c464a92205e9e96e282 Mon Sep 17 00:00:00 2001 From: SquidDev Date: Thu, 22 Sep 2016 16:16:19 +0100 Subject: [PATCH] Bump version - Fix incorrect ASM being dumped - Bump CCTweaks-Lua version --- gradle.properties | 2 +- gradle/scripts/dependencies.gradle | 3 ++- .../java/org/squiddev/cctweaks/core/asm/ASMTransformer.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index f1628594..ef05ecfd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ # Mod stuff mc_version=1.7.10 forge_version=10.13.4.1558 -mod_version=1.0.0 +mod_version=1.1.0 # Various libraries cc_version=1.75 diff --git a/gradle/scripts/dependencies.gradle b/gradle/scripts/dependencies.gradle index b7f1bc1c..2cf67b55 100644 --- a/gradle/scripts/dependencies.gradle +++ b/gradle/scripts/dependencies.gradle @@ -2,6 +2,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' repositories { + mavenLocal() mavenCentral() jcenter() @@ -69,7 +70,7 @@ dependencies { packaged "net.industrial-craft:industrialcraft-2:2.3.249-ex18:api" packaged "openperipheral:OpenPeripheralCore-API:3.2" - shade('org.squiddev:cctweaks-lua:1.0.8') { + shade('org.squiddev:cctweaks-lua:1.0.10') { // Different versions exclude group: 'ComputerCraft' exclude group: 'com.google.guava' diff --git a/src/main/java/org/squiddev/cctweaks/core/asm/ASMTransformer.java b/src/main/java/org/squiddev/cctweaks/core/asm/ASMTransformer.java index 14ba31e3..f0ac36b9 100644 --- a/src/main/java/org/squiddev/cctweaks/core/asm/ASMTransformer.java +++ b/src/main/java/org/squiddev/cctweaks/core/asm/ASMTransformer.java @@ -155,7 +155,7 @@ public byte[] transform(String className, String s2, byte[] bytes) { try { byte[] rewritten = patches.transform(className, bytes); - if (rewritten != bytes) writeDump(className, bytes); + if (rewritten != bytes) writeDump(className, rewritten); return rewritten; } catch (Exception e) { String contents = "Cannot patch " + className + ", falling back to default";