mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-19 04:15:14 -04:00
fix crash in entity hit box renderer
This commit is contained in:
parent
5c236bb530
commit
2c4d5439a5
@ -49,7 +49,9 @@ class EntityHitBoxRenderer(
|
|||||||
|
|
||||||
if (aabb != mesh?.aabb) {
|
if (aabb != mesh?.aabb) {
|
||||||
this.meshes.remove(entity)
|
this.meshes.remove(entity)
|
||||||
mesh?.unload()
|
if (mesh?.needsUpdate == true) {
|
||||||
|
mesh.unload()
|
||||||
|
}
|
||||||
nextMesh = createMesh(entity, aabb, visible)
|
nextMesh = createMesh(entity, aabb, visible)
|
||||||
}
|
}
|
||||||
return nextMesh
|
return nextMesh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user