Fixed Crash with unlinked wireless terminal
This commit is contained in:
@@ -52,8 +52,18 @@ public class WirelessTerminalGuiObject implements IPortableCell
|
|||||||
myPlayer = ep;
|
myPlayer = ep;
|
||||||
wth = wh;
|
wth = wh;
|
||||||
|
|
||||||
long encKey = Long.parseLong( encryptionKey );
|
Object obj = null;
|
||||||
Object obj = AEApi.instance().registries().locateable().findLocateableBySerial( encKey );
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
long encKey = Long.parseLong( encryptionKey );
|
||||||
|
obj = AEApi.instance().registries().locateable().findLocateableBySerial( encKey );
|
||||||
|
}
|
||||||
|
catch (NumberFormatException err)
|
||||||
|
{
|
||||||
|
// :P
|
||||||
|
}
|
||||||
|
|
||||||
if ( obj instanceof IGridHost )
|
if ( obj instanceof IGridHost )
|
||||||
{
|
{
|
||||||
IGridNode n = ((IGridHost) obj).getGridNode( ForgeDirection.UNKNOWN );
|
IGridNode n = ((IGridHost) obj).getGridNode( ForgeDirection.UNKNOWN );
|
||||||
|
|||||||
Reference in New Issue
Block a user