1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-14 04:00:30 +00:00

Merge pull request #1002 from Toad-Dev/issue-1001

Fix hasTypeRemote not working with additional types. (#1001)
This commit is contained in:
Jonathan Coates 2021-12-31 18:14:14 +00:00 committed by GitHub
commit f1a08a3362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ public abstract class WiredModemPeripheral extends ModemPeripheral implements IW
public final Object[] hasTypeRemote( IComputerAccess computer, String name, String type )
{
RemotePeripheralWrapper wrapper = getWrapper( computer, name );
return wrapper == null ? null : new Object[] { wrapper.getType().equals( type ) || wrapper.getAdditionalTypes().contains( getType() ) };
return wrapper == null ? null : new Object[] { wrapper.getType().equals( type ) || wrapper.getAdditionalTypes().contains( type ) };
}
/**