Fixes bug where floor blocks were not converted.

This was introduced by commit db3054ab0c

https://github.com/BentoBoxWorld/Greenhouses/issues/81
This commit is contained in:
tastybento 2021-09-25 11:04:01 -07:00
parent 8a3e0eb403
commit 47bead9145
1 changed files with 1 additions and 2 deletions

View File

@ -91,10 +91,9 @@ public class EcoSystemManager {
|| !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());