From 802949d8883ee749fa848b89f7d41de42fd437be Mon Sep 17 00:00:00 2001 From: Toad-Dev <748280+Toad-Dev@users.noreply.github.com> Date: Sun, 26 Dec 2021 20:53:09 -0800 Subject: [PATCH] Fix hasTypeRemote not working with additional peripheral types. Fixes #1001. Looks like the culprit was a simple typo. --- .../shared/peripheral/modem/wired/WiredModemPeripheral.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemPeripheral.java b/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemPeripheral.java index 96948df2e..ee2ba74cb 100644 --- a/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemPeripheral.java +++ b/src/main/java/dan200/computercraft/shared/peripheral/modem/wired/WiredModemPeripheral.java @@ -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 ) }; } /**