mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-01-04 15:41:30 +00:00
magic
This commit is contained in:
@@ -78,6 +78,22 @@ public class IrisSurfaceDecorator extends IrisEngineDecorator {
|
||||
}
|
||||
}
|
||||
|
||||
if (bd instanceof Bisected && getDimension().getFluidHeight() - 1 != height) {
|
||||
bd = bd.clone();
|
||||
((Bisected) bd).setHalf(Bisected.Half.TOP);
|
||||
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);
|
||||
}
|
||||
} else {
|
||||
if (decorator.isBlockDataForTop(getData())) {
|
||||
if (height != getDimension().getFluidHeight() - 1) {
|
||||
data.set(x, height + 1, z, decorator.getBlockData100(biome, getRng(), realX, height + 2, realZ, getData()));
|
||||
@@ -86,24 +102,7 @@ public class IrisSurfaceDecorator extends IrisEngineDecorator {
|
||||
} else {
|
||||
data.set(x, height + 1, z, decorator.getBlockData100(biome, getRng(), realX, height, realZ, getData()));
|
||||
}
|
||||
|
||||
|
||||
// if (bd instanceof Bisected && getDimension().getFluidHeight() - 1 != height) {
|
||||
// bd = bd.clone();
|
||||
// ((Bisected) bd).setHalf(Bisected.Half.TOP);
|
||||
// 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))) {
|
||||
data.set(x, height + 1, z, fixFaces(bd, x, height + 1, z));
|
||||
|
||||
@@ -197,7 +197,7 @@ public class IrisDecorator {
|
||||
}
|
||||
|
||||
public boolean isBlockDataForTop(IrisData data) {
|
||||
if (topPalette.isEmpty()) {
|
||||
if (getBlockDataTops(data).isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user