peanut brain moment (#10708)

This commit is contained in:
nuri (smol) 2025-04-22 11:01:34 +08:00 committed by GitHub
parent c35b9b8076
commit ba2a205c7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -585,7 +585,7 @@ public class BulletType extends Content implements Cloneable{
}
public void createUnits(Bullet b, float x, float y){
if(despawnUnit != null && Mathf.chance(despawnUnitChance)){
if(!net.client() && despawnUnit != null && Mathf.chance(despawnUnitChance)){
for(int i = 0; i < despawnUnitCount; i++){
Tmp.v1.rnd(Mathf.random(despawnUnitRadius));
var u = despawnUnit.spawn(b.team, x + Tmp.v1.x, y + Tmp.v1.y);