mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-19 07:11:02 +00:00
Fixed underwater structures not being waterlogged.
This commit is contained in:
@@ -83,7 +83,6 @@ public class PregeneratorJob implements PregenListener {
|
|||||||
this.pregenerator = new IrisPregenerator(task, method, this);
|
this.pregenerator = new IrisPregenerator(task, method, this);
|
||||||
max = new Position2(0, 0);
|
max = new Position2(0, 0);
|
||||||
min = new Position2(0, 0);
|
min = new Position2(0, 0);
|
||||||
KList<Runnable> draw = new KList<>();
|
|
||||||
task.iterateRegions((xx, zz) -> {
|
task.iterateRegions((xx, zz) -> {
|
||||||
min.setX(Math.min(xx << 5, min.getX()));
|
min.setX(Math.min(xx << 5, min.getX()));
|
||||||
min.setZ(Math.min(zz << 5, min.getZ()));
|
min.setZ(Math.min(zz << 5, min.getZ()));
|
||||||
|
|||||||
@@ -169,10 +169,10 @@ public class LazyPregenerator extends Thread implements Listener
|
|||||||
public static class LazyPregenJob
|
public static class LazyPregenJob
|
||||||
{
|
{
|
||||||
private String world;
|
private String world;
|
||||||
private int healingPosition = 0;
|
@Builder.Default private int healingPosition = 0;
|
||||||
private boolean healing = false;
|
@Builder.Default private boolean healing = false;
|
||||||
private int chunksPerMinute = 32; // 48 hours is roughly 5000 radius
|
@Builder.Default private int chunksPerMinute = 32; // 48 hours is roughly 5000 radius
|
||||||
private int radiusBlocks = 5000;
|
@Builder.Default private int radiusBlocks = 5000;
|
||||||
private int position = 0;
|
@Builder.Default private int position = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -799,7 +799,7 @@ public class IrisObject extends IrisRegistrant {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(config.isWaterloggable() && yy <= placer.getFluidHeight() && data instanceof Waterlogged) {
|
if((config.isWaterloggable() || config.isUnderwater()) && yy <= placer.getFluidHeight() && data instanceof Waterlogged) {
|
||||||
((Waterlogged) data).setWaterlogged(true);
|
((Waterlogged) data).setWaterlogged(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -882,7 +882,7 @@ public class IrisObject extends IrisRegistrant {
|
|||||||
|
|
||||||
int highest = placer.getHighest(xx, zz, getLoader(), true);
|
int highest = placer.getHighest(xx, zz, getLoader(), true);
|
||||||
|
|
||||||
if(config.isWaterloggable() && highest <= placer.getFluidHeight() && d instanceof Waterlogged)
|
if((config.isWaterloggable() || config.isUnderwater()) && highest <= placer.getFluidHeight() && d instanceof Waterlogged)
|
||||||
((Waterlogged) d).setWaterlogged(true);
|
((Waterlogged) d).setWaterlogged(true);
|
||||||
|
|
||||||
if(yv >= 0 && config.isBottom())
|
if(yv >= 0 && config.isBottom())
|
||||||
|
|||||||
Reference in New Issue
Block a user