mirror of
https://github.com/chylex/Hardcore-Ender-Expansion.git
synced 2025-04-10 20:15:42 +02:00
Updated Forge to see if the lag is fixed
This commit is contained in:
parent
a8d49aac66
commit
01db3f0e66
build.gradle
src/main/java/chylex/hee/world
@ -25,7 +25,7 @@ sourceCompatibility = 1.7
|
||||
targetCompatibility = 1.7
|
||||
|
||||
minecraft {
|
||||
version = "1.7.10-10.13.0.1184"
|
||||
version = "1.7.10-10.13.0.1194"
|
||||
assetDir = "eclipse/assets"
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ public class BiomeDecoratorHardcoreEnd extends BiomeEndDecorator{
|
||||
|
||||
generateOres();
|
||||
|
||||
double distFromCenter = Math.sqrt(MathUtil.square(chunk_X/16)+MathUtil.square(chunk_Z/16))*16D;
|
||||
double distFromCenter = Math.sqrt(MathUtil.square(chunk_X>>4)+MathUtil.square(chunk_Z>>4))*16D;
|
||||
|
||||
if (distFromCenter < 120D && randomGenerator.nextInt(5) == 0){
|
||||
int xx = chunk_X+randomGenerator.nextInt(16)+8;
|
||||
|
@ -8,7 +8,6 @@ import net.minecraft.world.World;
|
||||
import net.minecraft.world.gen.NoiseGeneratorOctaves;
|
||||
import net.minecraft.world.gen.structure.StructureBoundingBox;
|
||||
import chylex.hee.block.BlockList;
|
||||
import chylex.hee.system.util.TimeMeasurement;
|
||||
import chylex.hee.world.structure.ComponentScatteredFeatureCustom;
|
||||
import chylex.hee.world.structure.island.biome.IslandBiomeBase;
|
||||
import chylex.hee.world.structure.island.biome.data.IslandBiomeData;
|
||||
|
@ -142,7 +142,7 @@ public class ComponentScatteredFeatureTower extends ComponentScatteredFeatureCus
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean addComponentParts(World world, Random rand, StructureBoundingBox bb){ // TODO lag
|
||||
public boolean addComponentParts(World world, Random rand, StructureBoundingBox bb){
|
||||
Random consistentRandom = new Random(((startX/14)*185226L+(startZ/14)*24071632895L)^world.getWorldInfo().getSeed());
|
||||
|
||||
int centerX = sizeX/2, centerZ = sizeZ/2, islandY = 32+consistentRandom.nextInt(40), roomAmount = 4; // room amount maybe random?
|
||||
@ -180,8 +180,7 @@ public class ComponentScatteredFeatureTower extends ComponentScatteredFeatureCus
|
||||
|
||||
// ROOM CONTENT
|
||||
|
||||
for(int a = 0,ladderMeta,yy; a < roomAmount; a++){
|
||||
|
||||
for(int a = 0, ladderMeta, yy; a < roomAmount; a++){
|
||||
yy = islandY+roomHeight*a;
|
||||
ladderMeta = getMetadataWithOffset(Blocks.ladder,a%2 == 0?2:3);
|
||||
fillWithMetadataBlocks(world,bb,centerX,yy+1,centerZ-3+6*(a%2),centerX,yy+6,centerZ-3+6*(a%2),Blocks.ladder,ladderMeta,Blocks.ladder,ladderMeta,false);
|
||||
|
Loading…
Reference in New Issue
Block a user