From e756f954a00374d9c1a1c4483e5bb51a8a9c967c Mon Sep 17 00:00:00 2001 From: Sindusk Date: Wed, 30 May 2018 02:31:51 -0400 Subject: [PATCH] Fix properties file and correct method signature. --- build.gradle | 2 +- mods/Armoury.properties | 2 +- src/main/java/mod/sin/armoury/MaterialTweaks.java | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 9199df2..068d99d 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'java' group "mod.sin" -version "2.0" +version "2.1" repositories { mavenCentral() diff --git a/mods/Armoury.properties b/mods/Armoury.properties index 31a98c0..3c67b8e 100644 --- a/mods/Armoury.properties +++ b/mods/Armoury.properties @@ -1,4 +1,4 @@ -classname=mod.sin.armoury.Armoury +classname=mod.sin.armoury.ArmouryMod classpath=Armoury.jar depend.import=SinduskLibrary depend.suggests=ServerTweaks diff --git a/src/main/java/mod/sin/armoury/MaterialTweaks.java b/src/main/java/mod/sin/armoury/MaterialTweaks.java index 2400fd7..1f29c54 100644 --- a/src/main/java/mod/sin/armoury/MaterialTweaks.java +++ b/src/main/java/mod/sin/armoury/MaterialTweaks.java @@ -469,6 +469,7 @@ public class MaterialTweaks { Util.instrumentDeclared(thisClass, ctActions, "getVariableActionTime", "getStaminaModiferFor", replace); Util.instrumentDeclared(thisClass, ctActions, "getSlowActionTime", "getStaminaModiferFor", replace); Util.instrumentDeclared(thisClass, ctActions, "getPickActionTime", "getStaminaModiferFor", replace); + replace = "$_ = $proceed($$)*"+MaterialTweaks.class.getName()+".getMaterialSpeedModifier(realSource);"; Util.instrumentDeclared(thisClass, ctActions, "getItemCreationTime", "getStaminaModiferFor", replace); } } catch (NotFoundException e) {