Hot reload listener for datapacks and stilts underwater.

This commit is contained in:
Vatuu committed 2022-05-15 22:10:17 +02:00
1 parent 11b05b10a4
commit e7c458de3f
2 files changed
+7 -2

No files matched your search

@@ -719,7 +719,7 @@ public class IrisObject extends IrisRegistrant {
i = config.getRotation().rotate(i.clone(), spinx, spiny, spinz).clone();
i = config.getTranslate().translate(i.clone(), config.getRotation(), spinx, spiny, spinz).clone();
if(stilting && i.getBlockY() < lowest && !B.isAir(data)) {
if(stilting && i.getBlockY() < lowest && !B.isAirOrFluid(data)) {
lowest = i.getBlockY();
}
@@ -825,7 +825,7 @@ public class IrisObject extends IrisRegistrant {
}
if(d == null || B.isAir(d)) {
if(d == null || B.isAirOrFluid(d)) {
continue;
}