File tree 1 file changed +7
-6
lines changed
src/main/java/world/bentobox/greenhouses/data
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -256,11 +256,12 @@ public Map<Material, Integer> getMissingBlocks() {
256
256
* @return true if wall or roof block
257
257
*/
258
258
public boolean isRoofOrWallBlock (Location l ) {
259
- return ((l .getBlockY () == getCeilingHeight () - 1 )
260
- || l .getBlockX () == (int )getBoundingBox ().getMinX ()
261
- || l .getBlockX () == (int )getBoundingBox ().getMaxX () - 1
262
- || l .getBlockZ () == (int )getBoundingBox ().getMinZ ()
263
- || l .getBlockZ () == (int )getBoundingBox ().getMaxZ () - 1
264
- );
259
+ return (l .getBlockY () > this .getFloorHeight ()
260
+ && ((l .getBlockY () == getCeilingHeight () - 1 )
261
+ || l .getBlockX () == (int )getBoundingBox ().getMinX ()
262
+ || l .getBlockX () == (int )getBoundingBox ().getMaxX () - 1
263
+ || l .getBlockZ () == (int )getBoundingBox ().getMinZ ()
264
+ || l .getBlockZ () == (int )getBoundingBox ().getMaxZ () - 1
265
+ ));
265
266
}
266
267
}
You can’t perform that action at this time.
0 commit comments