This commit is contained in:
Daniel Mills 2020-09-11 23:45:36 -04:00
parent 1bafdf0feb
commit 30e1d9552c
4 changed files with 16 additions and 4 deletions

View File

@ -72,7 +72,7 @@ public class GenLayerCarve extends GenLayer
{ {
if(lastCarve - i > 2 && !(i < terrainHeight && lastCarve - i > terrainHeight)) if(lastCarve - i > 2 && !(i < terrainHeight && lastCarve - i > terrainHeight))
{ {
surfaces.add(new CarveResult(i, lastCarve - i)); surfaces.add(new CarveResult(i, lastCarve));
} }
} }

View File

@ -26,7 +26,6 @@ import lombok.experimental.Accessors;
@Data @Data
public class IrisObjectPlacement public class IrisObjectPlacement
{ {
@RegistryListObject @RegistryListObject
@Required @Required
@ArrayType(min = 1, type = String.class) @ArrayType(min = 1, type = String.class)
@ -99,6 +98,14 @@ public class IrisObjectPlacement
@Desc("If set to true, objects will place on the terrain height, ignoring the water surface.") @Desc("If set to true, objects will place on the terrain height, ignoring the water surface.")
private boolean underwater = false; private boolean underwater = false;
@DontObfuscate
@Desc("If set to true, objects will place in carvings (such as underground) or under an overhang.")
private boolean allowInCarvings = true;
@DontObfuscate
@Desc("If set to true, objects will place on carving ceilings instead of the floors. Make sure to rotate it upside down with rotate if need be as this option does NOT flip your object upside down.")
private boolean carvingCeiling = false;
@DontObfuscate @DontObfuscate
@Desc("If set to true, Iris will try to fill the insides of 'rooms' and 'pockets' where air should fit based off of raytrace checks. This prevents a village house placing in an area where a tree already exists, and instead replaces the parts of the tree where the interior of the structure is. \n\nThis operation does not affect warmed-up generation speed however it does slow down loading objects.") @Desc("If set to true, Iris will try to fill the insides of 'rooms' and 'pockets' where air should fit based off of raytrace checks. This prevents a village house placing in an area where a tree already exists, and instead replaces the parts of the tree where the interior of the structure is. \n\nThis operation does not affect warmed-up generation speed however it does slow down loading objects.")
private boolean smartBore = false; private boolean smartBore = false;

View File

@ -6,5 +6,10 @@ import lombok.Value;
public class CarveResult public class CarveResult
{ {
private final int surface; private final int surface;
private final int height; private final int ceiling;
public int getHeight()
{
return ceiling - surface;
}
} }