Fixed Export Height Bug
Fixed a bug in DungeonHelper that could cause dungeons to get clipped during export if they extend past Y = 127. We used world.getActualHeight() to obtain the height of the pocket, which should be 256, but getActualHeight() returns 128 for dimensions with no sky. Pocket dimensions are set to have no sky, so this becomes an issue.
This commit is contained in:
parent
eb9c8822d9
commit
84cfa9904c
1 changed files with 1 additions and 1 deletions
|
@ -409,7 +409,7 @@ public class DungeonHelper
|
|||
|
||||
xEnd = centerX + MAX_EXPORT_RADIUS;
|
||||
zEnd = centerZ + MAX_EXPORT_RADIUS;
|
||||
yEnd = Math.min(centerY + MAX_EXPORT_RADIUS, world.getActualHeight());
|
||||
yEnd = Math.min(centerY + MAX_EXPORT_RADIUS, world.getHeight());
|
||||
|
||||
//This could be done more efficiently, but honestly, this is the simplest approach and it
|
||||
//makes it easy for us to verify that the code is correct.
|
||||
|
|
Loading…
Reference in a new issue