This commit is contained in:
cyberpwn 2021-08-19 22:39:36 -04:00
parent 3fc907e50f
commit 4a1e511262
3 changed files with 3 additions and 6 deletions

View File

@ -44,12 +44,7 @@ import lombok.experimental.Accessors;
@AllArgsConstructor @AllArgsConstructor
@Desc("Generate worms") @Desc("Generate worms")
@Data @Data
public class IrisWorm implements IRare { public class IrisWorm {
@Required
@Desc("Typically a 1 in RARITY on a per chunk basis")
@MinNumber(1)
private int rarity = 15;
@Desc("The style used to determine the curvature of this worm") @Desc("The style used to determine the curvature of this worm")
private IrisGeneratorStyle angleStyle = new IrisGeneratorStyle(NoiseStyle.PERLIN); private IrisGeneratorStyle angleStyle = new IrisGeneratorStyle(NoiseStyle.PERLIN);

View File

@ -45,6 +45,7 @@ public class WormIterator2 {
if(worm == null) if(worm == null)
{ {
worm = new Worm2(x, z, 0, 0); worm = new Worm2(x, z, 0, 0);
return worm;
} }
worm.getX().setVelocity(noise.noise(worm.getX().getPosition(), 0)); worm.getX().setVelocity(noise.noise(worm.getX().getPosition(), 0));

View File

@ -49,6 +49,7 @@ public class WormIterator3 {
if(worm == null) if(worm == null)
{ {
worm = new Worm3(x, y, z, 0, 0, 0); worm = new Worm3(x, y, z, 0, 0, 0);
return worm;
} }
worm.getX().setVelocity(noise.noise(worm.getX().getPosition(), 0)); worm.getX().setVelocity(noise.noise(worm.getX().getPosition(), 0));