Fixed #387 - Levitator WeakReference crash
This commit is contained in:
parent
171d8bb1ee
commit
bcf98a6b6a
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ public class PartLevitator extends PartFace
|
||||||
|
|
||||||
public PartLevitator getLink()
|
public PartLevitator getLink()
|
||||||
{
|
{
|
||||||
return linked != null ? linked.get().world() != null ? linked.get() : null : null;
|
return linked != null && linked.get() != null && linked.get().world() != null ? linked.get() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue