Backwards compatibility to 1.6.2.

This commit is contained in:
Amnet 2013-09-25 00:19:09 +02:00
parent aabfe5531c
commit a2cc2b1ad0
2 changed files with 5 additions and 3 deletions

View file

@ -4,7 +4,7 @@
<property name="mod.majorversion" value="1" /> <property name="mod.majorversion" value="1" />
<property name="mod.minecraftversion" value="1" /> <property name="mod.minecraftversion" value="1" />
<property name="mod.tweakversion" value="1" /> <property name="mod.tweakversion" value="2" />
<property name="mod.version" value="${mod.majorversion}.${mod.minecraftversion}.${mod.tweakversion}" /> <property name="mod.version" value="${mod.majorversion}.${mod.minecraftversion}.${mod.tweakversion}" />
<condition property="mod.build" value="${env.BUILD_NUMBER}" else="0"> <condition property="mod.build" value="${env.BUILD_NUMBER}" else="0">
<isset property="env.BUILD_NUMBER" /> <isset property="env.BUILD_NUMBER" />
@ -132,7 +132,7 @@
<replace dir="${mcp.dir}/src/minecraft/biomesoplenty" token="@VERSION@" value="${mod.version}" /> <replace dir="${mcp.dir}/src/minecraft/biomesoplenty" token="@VERSION@" value="${mod.version}" />
<replace dir="${mcp.dir}/src/minecraft/biomesoplenty" token="@BUILD_NUMBER@" value="${mod.build}" /> <replace dir="${mcp.dir}/src/minecraft/biomesoplenty" token="@BUILD_NUMBER@" value="${mod.build}" />
<replace dir="${mcp.dir}/src/minecraft/biomesoplenty" token="@MC_VERSION@" value="${mc.version}" /> <replace dir="${mcp.dir}/src/minecraft/biomesoplenty" token="@MC_VERSION@" value="${mc.version}" />
<replace dir="${mcp.dir}/src/minecraft/biomesoplenty" token="1.42.666.42.1" value="${forge.version}" /> <replace dir="${mcp.dir}/src/minecraft/biomesoplenty" token="1.42.666.42.1" value="9.10.1.871" />
<replace dir="${mcp.dir}/reobf/resources" token="@VERSION@" value="${mod.version}" /> <replace dir="${mcp.dir}/reobf/resources" token="@VERSION@" value="${mod.version}" />
<replace dir="${mcp.dir}/reobf/resources" token="@BUILD_NUMBER@" value="${mod.build}" /> <replace dir="${mcp.dir}/reobf/resources" token="@BUILD_NUMBER@" value="${mod.build}" />

View file

@ -1,5 +1,6 @@
package biomesoplenty; package biomesoplenty;
import net.minecraft.crash.CallableMinecraftVersion;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraftforge.common.DimensionManager; import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.MinecraftForge;
@ -73,7 +74,8 @@ public class BiomesOPlenty
BOPItems.init(); BOPItems.init();
BOPFluids.init(); BOPFluids.init();
BOPCrafting.init(); BOPCrafting.init();
BOPStructures.init(); if ((new CallableMinecraftVersion(null)).minecraftVersion() != "1.6.2")
BOPStructures.init();
BOPBiomes.init(); BOPBiomes.init();
BOPEntities.init(); BOPEntities.init();
BOPVanillaCompat.init(); BOPVanillaCompat.init();