Fixed #387 - Levitator WeakReference crash

This commit is contained in:
Calclavia 2014-03-05 19:51:41 +08:00
parent 171d8bb1ee
commit bcf98a6b6a

View file

@ -141,7 +141,7 @@ public class PartLevitator extends PartFace
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