diff --git a/build.gradle b/build.gradle index f489ec6fb..6a5522352 100755 --- a/build.gradle +++ b/build.gradle @@ -1,14 +1,7 @@ buildscript { repositories { jcenter() - maven { - name = "forge" - url = "http://files.minecraftforge.net/maven" - } - maven { - name = "sonatype" - url = "https://oss.sonatype.org/content/repositories/snapshots/" - } + maven { url = "http://files.minecraftforge.net/maven" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' @@ -16,11 +9,10 @@ buildscript { } plugins { - id "net.minecraftforge.gradle.forge" version "2.0.2" id "com.matthewprenger.cursegradle" version "1.0.7" id "se.bjurr.gitchangelog.git-changelog-gradle-plugin" version "1.32" } - +apply plugin: 'net.minecraftforge.gradle.forge' apply plugin: 'maven' version = version_major + '.' + version_minor + '.' + version_patch + '.' + getBuildNumber() diff --git a/gradle.properties b/gradle.properties index 1c3755528..264f4f482 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ mcversion=1.10.2 -forgeversion=12.18.1.2094 -mcp_mappings=snapshot_20160525 +forgeversion=12.18.2.2125 +mcp_mappings=snapshot_20161111 tesla_version=1.10.2-1.2.1.49 jei_version=3.13.2.349 diff --git a/src/main/java/forestry/apiculture/worldgen/VillageApiaristHouse.java b/src/main/java/forestry/apiculture/worldgen/VillageApiaristHouse.java index 3c67dafb5..f8bea0fee 100644 --- a/src/main/java/forestry/apiculture/worldgen/VillageApiaristHouse.java +++ b/src/main/java/forestry/apiculture/worldgen/VillageApiaristHouse.java @@ -107,9 +107,9 @@ public class VillageApiaristHouse extends StructureVillagePieces.House1 { this.fenceGate = woodAccess.getBlock(woodType, WoodBlockKind.FENCE_GATE, fireproof); } - public static VillageApiaristHouse buildComponent(StructureVillagePieces.Start startPiece, List par1List, Random random, int structureMinX, int structureMinY, int structureMinZ, EnumFacing facing, int componentType) { + public static VillageApiaristHouse buildComponent(StructureVillagePieces.Start startPiece, List pieces, Random random, int structureMinX, int structureMinY, int structureMinZ, EnumFacing facing, int componentType) { StructureBoundingBox bbox = StructureBoundingBox.getComponentToAddBoundingBox(structureMinX, structureMinY, structureMinZ, -4, 0, 0, 12, 9, 12, facing); - if (!canVillageGoDeeper(bbox) || StructureComponent.findIntersecting(par1List, bbox) != null) { + if (!canVillageGoDeeper(bbox) || StructureComponent.findIntersecting(pieces, bbox) != null) { return null; } @@ -276,7 +276,7 @@ public class VillageApiaristHouse extends StructureVillagePieces.House1 { private void buildGarden(World world, StructureBoundingBox box) { Block ground = Blocks.DIRT; - if (field_189928_h == 1) { // desert + if (structureType == 1) { // desert ground = Blocks.SAND; } @@ -289,7 +289,7 @@ public class VillageApiaristHouse extends StructureVillagePieces.House1 { private void plantFlowerGarden(World world, StructureBoundingBox box, int minX, int minY, int minZ, int maxX, int maxY, int maxZ) { - if (field_189928_h == 1) { // desert + if (structureType == 1) { // desert setBlockState(world, Blocks.CACTUS.getDefaultState(), 4, 1, 7, box); return; } diff --git a/src/main/java/forestry/core/multiblock/MultiblockWorldRegistry.java b/src/main/java/forestry/core/multiblock/MultiblockWorldRegistry.java index cb8bea5ca..a4880fa89 100644 --- a/src/main/java/forestry/core/multiblock/MultiblockWorldRegistry.java +++ b/src/main/java/forestry/core/multiblock/MultiblockWorldRegistry.java @@ -315,7 +315,7 @@ public class MultiblockWorldRegistry { if (worldObj.getChunkProvider().getLoadedChunk(worldLocation.getX() >> 4, worldLocation.getZ() >> 4) == null) { // Part goes into the waiting-for-chunk-load list Set partSet; - long chunkHash = ChunkPos.chunkXZ2Int(worldLocation.getX() >> 4, worldLocation.getZ() >> 4); + long chunkHash = ChunkPos.asLong(worldLocation.getX() >> 4, worldLocation.getZ() >> 4); synchronized (partsAwaitingChunkLoadMutex) { if (!partsAwaitingChunkLoad.containsKey(chunkHash)) { partSet = new HashSet<>(); @@ -340,7 +340,7 @@ public class MultiblockWorldRegistry { public void onPartRemovedFromWorld(IMultiblockComponent part) { BlockPos coord = part.getCoordinates(); if (coord != null) { - long hash = ChunkPos.chunkXZ2Int(coord.getX() >> 4, coord.getZ() >> 4); + long hash = ChunkPos.asLong(coord.getX() >> 4, coord.getZ() >> 4); if (partsAwaitingChunkLoad.containsKey(hash)) { synchronized (partsAwaitingChunkLoadMutex) { @@ -396,7 +396,7 @@ public class MultiblockWorldRegistry { * @param chunkZ Chunk Z coordinate (world coordate >> 4) of the chunk that was loaded */ public void onChunkLoaded(int chunkX, int chunkZ) { - long chunkHash = ChunkPos.chunkXZ2Int(chunkX, chunkZ); + long chunkHash = ChunkPos.asLong(chunkX, chunkZ); if (partsAwaitingChunkLoad.containsKey(chunkHash)) { synchronized (partsAwaitingChunkLoadMutex) { if (partsAwaitingChunkLoad.containsKey(chunkHash)) {