mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-07 22:16:44 +01:00
Fixed rainbow trails attaching to other players after its assigned target is unloaded
This commit is contained in:
parent
67a2c27243
commit
50f3df37a2
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue