bumped to most recent Forge version
various small tweaks
This commit is contained in:
@@ -2,8 +2,7 @@
|
|||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src/main/java"/>
|
<classpathentry kind="src" path="src/main/java"/>
|
||||||
<classpathentry kind="src" path="src/main/resources"/>
|
<classpathentry kind="src" path="src/main/resources"/>
|
||||||
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
<classpathentry exported="true" kind="con" path="org.springsource.ide.eclipse.gradle.classpathcontainer"/>
|
<classpathentry kind="con" path="org.springsource.ide.eclipse.gradle.classpathcontainer"/>
|
||||||
<classpathentry combineaccessrules="false" kind="src" path="/MinecraftForge-1.7.2"/>
|
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|||||||
@@ -17,12 +17,12 @@ buildscript {
|
|||||||
apply plugin: 'forge'
|
apply plugin: 'forge'
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = '1.7.2-10.12.1.1098'
|
version = '1.7.2-10.12.2.1147'
|
||||||
}
|
}
|
||||||
|
|
||||||
jar.baseName = 'BetterFoliage-1.7.2'
|
jar.baseName = 'BetterFoliage-1.7.2'
|
||||||
group = 'com.github.octarine-noise'
|
group = 'com.github.octarine-noise'
|
||||||
version='0.9b'
|
version='0.9.1b'
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
inputs.property "version", project.version
|
inputs.property "version", project.version
|
||||||
|
|||||||
@@ -14,11 +14,13 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
|||||||
import cpw.mods.fml.common.network.NetworkCheckHandler;
|
import cpw.mods.fml.common.network.NetworkCheckHandler;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
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 class BetterFoliage {
|
||||||
|
|
||||||
public static final String MOD_ID = "BetterFoliage";
|
public static final String MOD_ID = "BetterFoliage";
|
||||||
public static final String MOD_NAME = "Better Foliage";
|
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
|
@Mod.Instance
|
||||||
public static BetterFoliage instance;
|
public static BetterFoliage instance;
|
||||||
@@ -31,7 +33,7 @@ public class BetterFoliage {
|
|||||||
public void preInit(FMLPreInitializationEvent event) {
|
public void preInit(FMLPreInitializationEvent event) {
|
||||||
log = event.getModLog();
|
log = event.getModLog();
|
||||||
if (event.getSide() == Side.CLIENT) {
|
if (event.getSide() == Side.CLIENT) {
|
||||||
configDir = new File(event.getModConfigurationDirectory(), "betterfoliage");
|
configDir = new File(event.getModConfigurationDirectory(), MOD_ID);
|
||||||
configDir.mkdir();
|
configDir.mkdir();
|
||||||
Config.load();
|
Config.load();
|
||||||
BetterFoliageClient.preInit();
|
BetterFoliageClient.preInit();
|
||||||
|
|||||||
@@ -13,8 +13,7 @@ public class BlockRenderTypeOverride {
|
|||||||
public int getRenderType(int original, Block block);
|
public int getRenderType(int original, Block block);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Entry point from transformed RenderBlocks class. If no provider is given,
|
/** Entry point from transformed RenderBlocks class.
|
||||||
* replicates default behaviour
|
|
||||||
* @param block block instance
|
* @param block block instance
|
||||||
* @return block render type
|
* @return block render type
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ public class BetterFoliageTransformer extends EZTransformerBase {
|
|||||||
@MethodTransform(className="net.minecraft.client.renderer.RenderBlocks",
|
@MethodTransform(className="net.minecraft.client.renderer.RenderBlocks",
|
||||||
obf=@MethodMatch(name=DeobfNames.RB_RBBRT_NAME_OBF, signature=DeobfNames.RB_RBBRT_SIG_OBF),
|
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),
|
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) {
|
public void handleRenderBlockOverride(MethodNode method, boolean obf) {
|
||||||
AbstractInsnNode invokeGetRenderType = findNext(method.instructions.getFirst(), matchInvokeAny());
|
AbstractInsnNode invokeGetRenderType = findNext(method.instructions.getFirst(), matchInvokeAny());
|
||||||
AbstractInsnNode storeRenderType = findNext(invokeGetRenderType, matchOpcode(Opcodes.ISTORE));
|
AbstractInsnNode storeRenderType = findNext(invokeGetRenderType, matchOpcode(Opcodes.ISTORE));
|
||||||
|
|||||||
Reference in New Issue
Block a user