Worlds are bigger now

- Stop clamping Y in [0, 256)
This commit is contained in:
Jozufozu 2021-12-10 00:28:33 -08:00
parent eaea2a9b31
commit 8101f19611

View file

@ -52,9 +52,8 @@ public abstract class ContraptionLighter<C extends Contraption> implements Light
} }
protected void growBoundsForEdgeData() { protected void growBoundsForEdgeData() {
bounds.grow(2); // so we have at least enough data on the edges to avoid artifacts and have smooth lighting // so we have at least enough data on the edges to avoid artifacts and have smooth lighting
bounds.setMinY(Math.max(bounds.getMinY(), 0)); bounds.grow(2);
bounds.setMaxY(Math.min(bounds.getMaxY(), 255));
} }
@Override @Override