Fixed rainbow trails attaching to other players after its assigned target is unloaded

This commit is contained in:
Sollace 2023-08-16 18:36:04 +01:00
parent 67a2c27243
commit 50f3df37a2
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -48,6 +48,7 @@ public class RainbowTrailParticle extends AbstractBillboardParticle implements A
@Override
public void attach(Link link) {
this.link = Optional.of(link);
bound = true;
}
@Override
@ -57,9 +58,7 @@ public class RainbowTrailParticle extends AbstractBillboardParticle implements A
@Override
public void setAttribute(int key, Number value) {
if (key == Attachment.ATTR_COLOR) {
bound = value.intValue() == 1;
}
}
@Override