Update forge version
This commit is contained in:
parent
f1ce404849
commit
40835a2773
5 changed files with 15 additions and 10 deletions
|
@ -75,7 +75,7 @@ if (ENV.BUILD_NUMBER) {
|
|||
}
|
||||
|
||||
minecraft {
|
||||
version = "1.11-13.19.0.2152"
|
||||
version = "1.11-13.19.0.2180"
|
||||
mappings = "snapshot_20161118"
|
||||
replace "@MODVERSION@", project.version
|
||||
// makeObfSourceJar = false
|
||||
|
|
|
@ -93,7 +93,7 @@ public class BlockMachineCasing extends BlockMultiblockBase {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean canRenderInLayer(BlockRenderLayer layer) {
|
||||
public boolean canRenderInLayer(IBlockState state, BlockRenderLayer layer) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ import techreborn.client.TechRebornCreativeTab;
|
|||
import techreborn.config.ConfigTechReborn;
|
||||
import techreborn.lib.ModInfo;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
|
@ -61,13 +62,16 @@ public class ItemRockCutter extends ItemPickaxe implements IEnergyItemInfo, ITex
|
|||
}
|
||||
|
||||
@Override
|
||||
public int getHarvestLevel(ItemStack stack, String toolClass) {
|
||||
|
||||
public int getHarvestLevel(ItemStack stack,
|
||||
String toolClass,
|
||||
@Nullable
|
||||
EntityPlayer player,
|
||||
@Nullable
|
||||
IBlockState blockState) {
|
||||
if (!stack.isItemEnchanted()) {
|
||||
stack.addEnchantment(Enchantment.getEnchantmentByID(33), 1);
|
||||
}
|
||||
|
||||
return super.getHarvestLevel(stack, toolClass);
|
||||
return super.getHarvestLevel(stack, toolClass, player, blockState);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -240,14 +240,14 @@ public class TechRebornWorldGen implements IWorldGenerator {
|
|||
int chance = config.rubberTreeConfig.chance;
|
||||
boolean isValidSpawn = false;
|
||||
Biome biomeGenBase = world.getBiomeForCoordsBody(new BlockPos(chunkX * 16, 72, chunkZ * 16));
|
||||
if (BiomeDictionary.isBiomeOfType(biomeGenBase, BiomeDictionary.Type.SWAMP)) {
|
||||
if (BiomeDictionary.hasType(biomeGenBase, BiomeDictionary.Type.SWAMP)) {
|
||||
// TODO check the config file for bounds on this, might cause
|
||||
// issues
|
||||
chance -= random.nextInt(10) + 10;
|
||||
isValidSpawn = true;
|
||||
}
|
||||
if (BiomeDictionary.isBiomeOfType(biomeGenBase, BiomeDictionary.Type.FOREST)
|
||||
|| BiomeDictionary.isBiomeOfType(biomeGenBase, BiomeDictionary.Type.JUNGLE)) {
|
||||
if (BiomeDictionary.hasType(biomeGenBase, BiomeDictionary.Type.FOREST)
|
||||
|| BiomeDictionary.hasType(biomeGenBase, BiomeDictionary.Type.JUNGLE)) {
|
||||
chance -= random.nextInt(5) + 3;
|
||||
isValidSpawn = true;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
"textures": {
|
||||
"particle": "techreborn:blocks/machines/generators/solar_panel_side_off",
|
||||
"top": "techreborn:blocks/machines/generators/solar_panel_top",
|
||||
"down": "techreborn:blocks/machines/generators/generator_bottom"
|
||||
"down": "techreborn:blocks/machines/generators/generator_bottom",
|
||||
"side": "techreborn:blocks/machines/generators/solar_panel_side_off"
|
||||
}
|
||||
},
|
||||
"variants": {
|
||||
|
|
Loading…
Add table
Reference in a new issue