mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-03 16:36:00 +00:00
Need help on this one.
This commit is contained in:
parent
3b98b20f73
commit
1b0411e23a
@ -78,22 +78,32 @@ public class IrisSurfaceDecorator extends IrisEngineDecorator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bd instanceof Bisected && getDimension().getFluidHeight() - 1 != height) {
|
if (decorator.isBlockDataForTop(getData())) {
|
||||||
bd = bd.clone();
|
if (height != getDimension().getFluidHeight() - 1) {
|
||||||
((Bisected) bd).setHalf(Bisected.Half.TOP);
|
data.set(x, height + 1, z, decorator.getBlockData100(biome, getRng(), realX, height + 2, realZ, getData()));
|
||||||
try {
|
data.set(x, height + 2, z, decorator.getBlockDataForTop(biome, getRng(), realX, height + 1, realZ, getData()));
|
||||||
data.set(x, height + 2, z, bd);
|
}
|
||||||
} catch (Throwable e) {
|
} else {
|
||||||
Iris.reportError(e);
|
data.set(x, height + 1, z, decorator.getBlockData100(biome, getRng(), realX, height, realZ, getData()));
|
||||||
}
|
}
|
||||||
bd = bd.clone();
|
|
||||||
((Bisected) bd).setHalf(Bisected.Half.BOTTOM);
|
|
||||||
try {
|
// if (bd instanceof Bisected && getDimension().getFluidHeight() - 1 != height) {
|
||||||
data.set(x, height + 1, z, bd);
|
// bd = bd.clone();
|
||||||
} catch (Throwable e) {
|
// ((Bisected) bd).setHalf(Bisected.Half.TOP);
|
||||||
Iris.reportError(e);
|
// try {
|
||||||
}
|
// data.set(x, height + 2, z, bd);
|
||||||
}
|
// } catch (Throwable e) {
|
||||||
|
// Iris.reportError(e);
|
||||||
|
// }
|
||||||
|
// bd = bd.clone();
|
||||||
|
// ((Bisected) bd).setHalf(Bisected.Half.BOTTOM);
|
||||||
|
// try {
|
||||||
|
// data.set(x, height + 1, z, bd);
|
||||||
|
// } catch (Throwable e) {
|
||||||
|
// Iris.reportError(e);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
if (B.isAir(data.get(x, height + 1, z))) {
|
if (B.isAir(data.get(x, height + 1, z))) {
|
||||||
data.set(x, height + 1, z, fixFaces(bd, x, height + 1, z));
|
data.set(x, height + 1, z, fixFaces(bd, x, height + 1, z));
|
||||||
|
@ -196,6 +196,13 @@ public class IrisDecorator {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isBlockDataForTop(IrisData data) {
|
||||||
|
if (topPalette.isEmpty()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public KList<BlockData> getBlockData(IrisData data) {
|
public KList<BlockData> getBlockData(IrisData data) {
|
||||||
return blockData.aquire(() ->
|
return blockData.aquire(() ->
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user