move lightvolumes down 1 to fix darkness on bottom of contraption

This commit is contained in:
JozsefA 2021-01-09 16:38:30 -08:00
parent 83fa7d34a8
commit d2173614dc

View file

@ -91,7 +91,7 @@ public class ContraptionLighter {
private void setupPosition(Contraption c) { private void setupPosition(Contraption c) {
Vec3d positionVec = c.entity.getPositionVec(); Vec3d positionVec = c.entity.getPositionVec();
minX = (int) (Math.floor(positionVec.x) - sizeX / 2); minX = (int) (Math.floor(positionVec.x) - sizeX / 2);
minY = (int) (Math.floor(positionVec.y)); minY = (int) (Math.floor(positionVec.y) - 1);
minZ = (int) (Math.floor(positionVec.z) - sizeZ / 2); minZ = (int) (Math.floor(positionVec.z) - sizeZ / 2);
} }