From 84cfa9904cf97b2cddf3696ccf56474ca4074452 Mon Sep 17 00:00:00 2001 From: SenseiKiwi Date: Wed, 24 Jul 2013 20:17:56 -0400 Subject: [PATCH] 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. --- StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java b/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java index d74c8ca..6ba3378 100644 --- a/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java +++ b/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java @@ -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.