mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 14:53:05 +00:00
Update Forge and MCP
This commit is contained in:
1 parent
91ec6cff9b
commit
60d2820ed6
4 files changed
+11
-19
No files matched your search
@@ -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<StructureComponent> par1List, Random random, int structureMinX, int structureMinY, int structureMinZ, EnumFacing facing, int componentType) {
|
||||
public static VillageApiaristHouse buildComponent(StructureVillagePieces.Start startPiece, List<StructureComponent> 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;
|
||||
}
|
||||
|
||||
@@ -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<IMultiblockComponent> 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)) {
|
||||
|
||||
Reference in new issue
Block a user