mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 18:55:18 +00:00
Reblackhole
This commit is contained in:
parent
3beda9c201
commit
1797df7017
@ -38,7 +38,7 @@ import java.util.function.Predicate;
|
|||||||
|
|
||||||
public class IrisDecorantActuator extends EngineAssignedActuator<BlockData> {
|
public class IrisDecorantActuator extends EngineAssignedActuator<BlockData> {
|
||||||
private static final Predicate<BlockData> PREDICATE_SOLID = (b) -> b != null && !b.getMaterial().isAir() && !b.getMaterial().equals(Material.WATER) && !b.getMaterial().equals(Material.LAVA);
|
private static final Predicate<BlockData> PREDICATE_SOLID = (b) -> b != null && !b.getMaterial().isAir() && !b.getMaterial().equals(Material.WATER) && !b.getMaterial().equals(Material.LAVA);
|
||||||
private static BiPredicate<BlockData, Integer> PREDICATE_CAVELIQUID = null;
|
private BiPredicate<BlockData, Integer> PREDICATE_CAVELIQUID = null;
|
||||||
private final RNG rng;
|
private final RNG rng;
|
||||||
@Getter
|
@Getter
|
||||||
private final EngineDecorator surfaceDecorator;
|
private final EngineDecorator surfaceDecorator;
|
||||||
@ -63,7 +63,6 @@ public class IrisDecorantActuator extends EngineAssignedActuator<BlockData> {
|
|||||||
seaFloorDecorator = new IrisSeaFloorDecorator(getEngine());
|
seaFloorDecorator = new IrisSeaFloorDecorator(getEngine());
|
||||||
|
|
||||||
//Can't be created without an instance of the actuator due to referencing the engine
|
//Can't be created without an instance of the actuator due to referencing the engine
|
||||||
if (PREDICATE_CAVELIQUID == null) {
|
|
||||||
PREDICATE_CAVELIQUID = (b, y) -> {
|
PREDICATE_CAVELIQUID = (b, y) -> {
|
||||||
for (IrisCaveLayer layer : getEngine().getDimension().getCaveLayers()) {
|
for (IrisCaveLayer layer : getEngine().getDimension().getCaveLayers()) {
|
||||||
if (!layer.getFluid().hasFluid(getData())) {
|
if (!layer.getFluid().hasFluid(getData())) {
|
||||||
@ -78,7 +77,7 @@ public class IrisDecorantActuator extends EngineAssignedActuator<BlockData> {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@BlockCoordinates
|
@BlockCoordinates
|
||||||
|
Loading…
x
Reference in New Issue
Block a user