mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-27 07:26:48 +01:00
More LightVolume guards
- Should fix odd crash
This commit is contained in:
parent
b266e6014c
commit
a9ae8ca68e
1 changed files with 4 additions and 0 deletions
|
@ -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