Skip to content

Commit

Permalink
Fixes bug where floor blocks were not converted.
Browse files Browse the repository at this point in the history
This was introduced by commit db3054a

#81
  • Loading branch information
tastybento committed Sep 25, 2021
1 parent 8a3e0eb commit 47bead9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@ private void convertBlocks(Greenhouse gh) {
|| !gh.getLocation().getWorld().isChunkLoaded(((int) gh.getBoundingBox().getMinX()) >> 4, ((int) gh.getBoundingBox().getMinZ()) >> 4)){
return;
}

int gh_min_x = NumberConversions.floor(gh.getInternalBoundingBox().getMinX());
int gh_max_x = NumberConversions.floor(gh.getInternalBoundingBox().getMaxX());
int gh_min_y = NumberConversions.floor(gh.getInternalBoundingBox().getMinY());
int gh_min_y = NumberConversions.floor(gh.getBoundingBox().getMinY()); // Note: this gets the floor
int gh_max_y = NumberConversions.floor(gh.getInternalBoundingBox().getMaxY());
int gh_min_z = NumberConversions.floor(gh.getInternalBoundingBox().getMinZ());
int gh_max_z = NumberConversions.floor(gh.getInternalBoundingBox().getMaxZ());
Expand Down

0 comments on commit 47bead9

Please sign in to comment.