mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-15 07:23:42 +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() {
|
||||
bounds.grow(2); // 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.setMaxY(Math.min(bounds.getMaxY(), 255));
|
||||
// so we have at least enough data on the edges to avoid artifacts and have smooth lighting
|
||||
bounds.grow(2);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue