bumped to most recent Forge version

various small tweaks
This commit is contained in:
octarine-noise
2014-06-27 23:39:10 +02:00
parent 2b1fd84cd5
commit ec184f9916
5 changed files with 10 additions and 10 deletions

View File

@@ -2,8 +2,7 @@
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry exported="true" kind="con" path="org.springsource.ide.eclipse.gradle.classpathcontainer"/>
<classpathentry combineaccessrules="false" kind="src" path="/MinecraftForge-1.7.2"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.springsource.ide.eclipse.gradle.classpathcontainer"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@@ -17,12 +17,12 @@ buildscript {
apply plugin: 'forge'
minecraft {
version = '1.7.2-10.12.1.1098'
version = '1.7.2-10.12.2.1147'
}
jar.baseName = 'BetterFoliage-1.7.2'
group = 'com.github.octarine-noise'
version='0.9b'
version='0.9.1b'
processResources {
inputs.property "version", project.version

View File

@@ -14,11 +14,13 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkCheckHandler;
import cpw.mods.fml.relauncher.Side;
@Mod(name=BetterFoliage.MOD_NAME, modid=BetterFoliage.MOD_ID, acceptedMinecraftVersions="[1.7.2]", guiFactory="mods.betterfoliage.client.gui.ConfigGuiFactory")
@Mod(name=BetterFoliage.MOD_NAME, modid=BetterFoliage.MOD_ID, acceptedMinecraftVersions=BetterFoliage.MC_VERSIONS, guiFactory=BetterFoliage.GUI_FACTORY)
public class BetterFoliage {
public static final String MOD_ID = "BetterFoliage";
public static final String MOD_NAME = "Better Foliage";
public static final String MC_VERSIONS = "[1.7.2]";
public static final String GUI_FACTORY = "mods.betterfoliage.client.gui.ConfigGuiFactory";
@Mod.Instance
public static BetterFoliage instance;
@@ -31,7 +33,7 @@ public class BetterFoliage {
public void preInit(FMLPreInitializationEvent event) {
log = event.getModLog();
if (event.getSide() == Side.CLIENT) {
configDir = new File(event.getModConfigurationDirectory(), "betterfoliage");
configDir = new File(event.getModConfigurationDirectory(), MOD_ID);
configDir.mkdir();
Config.load();
BetterFoliageClient.preInit();

View File

@@ -13,8 +13,7 @@ public class BlockRenderTypeOverride {
public int getRenderType(int original, Block block);
}
/** Entry point from transformed RenderBlocks class. If no provider is given,
* replicates default behaviour
/** Entry point from transformed RenderBlocks class.
* @param block block instance
* @return block render type
*/

View File

@@ -13,7 +13,7 @@ public class BetterFoliageTransformer extends EZTransformerBase {
@MethodTransform(className="net.minecraft.client.renderer.RenderBlocks",
obf=@MethodMatch(name=DeobfNames.RB_RBBRT_NAME_OBF, signature=DeobfNames.RB_RBBRT_SIG_OBF),
deobf=@MethodMatch(name=DeobfNames.RB_RBBRT_NAME_MCP, signature=DeobfNames.RB_RBBRT_SIG_MCP),
log="Adding RenderBlocks.renderBlockByRenderType() render type ovverride")
log="Applying RenderBlocks.renderBlockByRenderType() render type ovverride")
public void handleRenderBlockOverride(MethodNode method, boolean obf) {
AbstractInsnNode invokeGetRenderType = findNext(method.instructions.getFirst(), matchInvokeAny());
AbstractInsnNode storeRenderType = findNext(invokeGetRenderType, matchOpcode(Opcodes.ISTORE));