Commit 9bc8a14
committed
overlays: fix crash when recreating mesh
I refactored this, somehow broke it and did not notice. Thanks to polarite for reporting.
Mesh invalidation happens when you go e.g. into water and the the mesh gets recrated, but never loaded. An assertion is hit (mesh not loaded yet) when attempting to draw it.1 parent c6a6876 commit 9bc8a14
1 file changed
Lines changed: 5 additions & 4 deletions
File tree
- src/main/java/de/bixilon/minosoft/gui/rendering/framebuffer/world/overlay/overlays/simple
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 53 | + | |
56 | 54 | | |
| 55 | + | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
0 commit comments