More bugfixes related to portal generation. Should be all now.
This commit is contained in:
parent
6547556280
commit
d7817aef39
4 changed files with 42 additions and 0 deletions
|
@ -27,3 +27,15 @@
|
|||
{
|
||||
if (par1World.isAirBlock(var14, var20, var17))
|
||||
{
|
||||
@@ -304,9 +304,9 @@
|
||||
var10 = 70;
|
||||
}
|
||||
|
||||
- if (var10 > 118)
|
||||
+ if (var10 > par1World.getHeight() - 10) //BugFix
|
||||
{
|
||||
- var10 = 118;
|
||||
+ var10 = par1World.getHeight() - 10; //BugFix
|
||||
}
|
||||
|
||||
var16 = var10;
|
||||
|
|
|
@ -318,6 +318,15 @@
|
|||
return par1 > 0 && var8 == null && var9.canPlaceBlockOnSide(this, par2, par3, par4, par6);
|
||||
}
|
||||
}
|
||||
@@ -4399,7 +4413,7 @@
|
||||
*/
|
||||
public int getHeight()
|
||||
{
|
||||
- return 256;
|
||||
+ return worldProvider.hasNoSky ? 128 : 256; //Nether is 128, overworld is 256, Bugfix related to Portal generation
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4449,4 +4463,39 @@
|
||||
{
|
||||
return this.worldInfo.getTerrainType().getHorizon(this);
|
||||
|
|
|
@ -27,3 +27,15 @@
|
|||
{
|
||||
if (par1World.isAirBlock(var14, var20, var17))
|
||||
{
|
||||
@@ -304,9 +304,9 @@
|
||||
var10 = 70;
|
||||
}
|
||||
|
||||
- if (var10 > 118)
|
||||
+ if (var10 > par1World.getHeight() - 10) //BugFix
|
||||
{
|
||||
- var10 = 118;
|
||||
+ var10 = par1World.getHeight() - 10; //BugFix
|
||||
}
|
||||
|
||||
var16 = var10;
|
||||
|
|
|
@ -283,6 +283,15 @@
|
|||
|
||||
return par1 > 0 && var8 == null && var9.canPlaceBlockOnSide(this, par2, par3, par4, par6);
|
||||
}
|
||||
@@ -3827,7 +3838,7 @@
|
||||
*/
|
||||
public int getHeight()
|
||||
{
|
||||
- return 256;
|
||||
+ return worldProvider.hasNoSky ? 128 : 256; //Nether is 128, overworld is 256, Bugfix related to Portal generation
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3864,4 +3875,38 @@
|
||||
{
|
||||
return this.getChunkProvider().findClosestStructure(this, par1Str, par2, par3, par4);
|
||||
|
|
Loading…
Reference in a new issue