Skip to content

Commit df69746

Browse files
committed
修复当生成粒子时, 对应的位置是0,0,0 不显示的BUG
1 parent 0b92d20 commit df69746

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/kotlin/cn/coostack/cooparticlesapi/network/particle/style/ParticleGroupStyle.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ abstract class ParticleGroupStyle(var visibleRange: Double = 32.0, val uuid: UUI
318318
locations.forEach {
319319
val uuid = it.key.uuid
320320
val len = particleDefaultLength[uuid] ?: return@forEach
321+
if (len <= 0.0) {
322+
return@forEach
323+
}
321324
val value = it.value
322325
value.multiply(len * scale / value.length())
323326
}

0 commit comments

Comments
 (0)