This commit is contained in:
modmuss50 2016-01-13 15:41:30 +00:00
parent c000c47f7c
commit eca3534d1e
2 changed files with 4 additions and 17 deletions

View file

@ -71,11 +71,11 @@ configurations {
compile.extendsFrom shade
}
version = "0.7.8"
def ENV = System.getenv()
if (ENV.BUILD_NUMBER) {
version = "0.7.4." + "${System.getenv().BUILD_NUMBER}"
} else {
version = "0.7.4.BUILD"
version = version + "." + "${System.getenv().BUILD_NUMBER}"
}
minecraft {

View file

@ -1,18 +1,13 @@
package techreborn.compat.fmp;
import codechicken.microblock.BlockMicroMaterial;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import techreborn.compat.ICompatModule;
import techreborn.init.ModBlocks;
import java.util.ArrayList;
import java.util.List;
/**
* Created by modmuss50 on 02/01/2016 for TechReborn-1.7.
@ -42,14 +37,6 @@ public class ForgeMultipartCompat implements ICompatModule {
}
public void cuttableBlock(Block block){
if(Item.getItemFromBlock(block).getHasSubtypes()){
List<ItemStack> list = new ArrayList<ItemStack>();
block.getSubBlocks(null, null, list);
for (int i = 0; i < list.size(); i++) {
BlockMicroMaterial.createAndRegister(block, i);
}
} else {
BlockMicroMaterial.createAndRegister(block, 0);
}
}
}