1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-11-19 00:04:53 +00:00

Fix hasTypeRemote not working with additional peripheral types.

Fixes #1001. Looks like the culprit was a simple typo.
This commit is contained in:
Toad-Dev 2021-12-26 20:53:09 -08:00
parent e558b31b2b
commit 802949d888

View File

@ -151,7 +151,7 @@ public abstract class WiredModemPeripheral extends ModemPeripheral implements IW
public final Object[] hasTypeRemote( IComputerAccess computer, String name, String type ) public final Object[] hasTypeRemote( IComputerAccess computer, String name, String type )
{ {
RemotePeripheralWrapper wrapper = getWrapper( computer, name ); 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 ) };
} }
/** /**