mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-28 16:06:48 +01:00
Worlds are bigger now
- Stop clamping Y in [0, 256)
This commit is contained in:
parent
eaea2a9b31
commit
8101f19611
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue