mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 11:54:59 -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) {
|
||||
this.meshes.remove(entity)
|
||||
mesh?.unload()
|
||||
if (mesh?.needsUpdate == true) {
|
||||
mesh.unload()
|
||||
}
|
||||
nextMesh = createMesh(entity, aabb, visible)
|
||||
}
|
||||
return nextMesh
|
||||
|
Loading…
x
Reference in New Issue
Block a user