mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-27 07:26:48 +01:00
Merge branch 'dev' into shader-pipeline
This commit is contained in:
commit
a417b2944c
2 changed files with 6 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
|||
0.2.3:
|
||||
Fixes
|
||||
- Fix crash moving a deleted LightVolume
|
||||
Technical/API:
|
||||
- Alter BeginFrameEvent to enable compatibility with optifine shadows
|
||||
|
||||
|
|
|
@ -121,6 +121,8 @@ public class LightVolume {
|
|||
}
|
||||
|
||||
public void move(IBlockDisplayReader world, GridAlignedBB newSampleVolume) {
|
||||
if (removed) return;
|
||||
|
||||
if (textureVolume.contains(newSampleVolume)) {
|
||||
if (newSampleVolume.intersects(sampleVolume)) {
|
||||
GridAlignedBB newArea = newSampleVolume.intersect(sampleVolume);
|
||||
|
@ -166,6 +168,8 @@ public class LightVolume {
|
|||
* This is expensive and should be avoided.
|
||||
*/
|
||||
public void initialize(IBlockDisplayReader world) {
|
||||
if (removed) return;
|
||||
|
||||
BlockPos.Mutable pos = new BlockPos.Mutable();
|
||||
|
||||
int shiftX = textureVolume.minX;
|
||||
|
|
Loading…
Reference in a new issue