mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-27 14:30:14 +00:00
Subterrain lookup check order
- Subterrain cell lookup resolves the dimension only after the complex is present
This commit is contained in:
1 parent
9d9acc7a3a
commit
97c67b794b
1 file changed
+4
-1
@@ -343,8 +343,11 @@ public interface Engine extends DataProvider, Fallible, BlockUpdater, Renderer,
|
|||||||
@BlockCoordinates
|
@BlockCoordinates
|
||||||
default SubterrainCell getSubterrainCell(int x, int y, int z) {
|
default SubterrainCell getSubterrainCell(int x, int y, int z) {
|
||||||
IrisComplex complex = getComplex();
|
IrisComplex complex = getComplex();
|
||||||
|
if (complex == null) {
|
||||||
|
return SubterrainCell.OUTSIDE;
|
||||||
|
}
|
||||||
IrisDimension dimension = getDimension();
|
IrisDimension dimension = getDimension();
|
||||||
if (complex == null || dimension == null
|
if (dimension == null
|
||||||
|| !dimension.allowsSubterrainFeatures()
|
|| !dimension.allowsSubterrainFeatures()
|
||||||
|| dimension.getSubterrainFeatures() == null || dimension.getSubterrainFeatures().isEmpty()) {
|
|| dimension.getSubterrainFeatures() == null || dimension.getSubterrainFeatures().isEmpty()) {
|
||||||
return SubterrainCell.OUTSIDE;
|
return SubterrainCell.OUTSIDE;
|
||||||
|
|||||||
Reference in new issue
Block a user