From 4b95ed5d536ac25a47d81b3a2d8504352e427348 Mon Sep 17 00:00:00 2001 From: SquidDev Date: Fri, 5 May 2017 16:53:49 +0100 Subject: [PATCH] Do not reset redstone inputs when adding peripherals As of 8abff95441b87df733df839eca6c373513e0487b, peripherals no longer block redstone input. As this is no longer the case, redstone levels should not be reset. --- .../dan200/computercraft/shared/turtle/core/TurtleBrain.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/dan200/computercraft/shared/turtle/core/TurtleBrain.java b/src/main/java/dan200/computercraft/shared/turtle/core/TurtleBrain.java index 726498f9b..6f9071cb7 100644 --- a/src/main/java/dan200/computercraft/shared/turtle/core/TurtleBrain.java +++ b/src/main/java/dan200/computercraft/shared/turtle/core/TurtleBrain.java @@ -977,15 +977,11 @@ public class TurtleBrain implements ITurtleAccess if( !m_peripherals.containsKey( side ) ) { serverComputer.setPeripheral( dir, peripheral ); - serverComputer.setRedstoneInput( dir, 0 ); - serverComputer.setBundledRedstoneInput( dir, 0 ); m_peripherals.put( side, peripheral ); } else if( !m_peripherals.get( side ).equals( peripheral ) ) { serverComputer.setPeripheral( dir, peripheral ); - serverComputer.setRedstoneInput( dir, 0 ); - serverComputer.setBundledRedstoneInput( dir, 0 ); m_peripherals.remove( side ); m_peripherals.put( side, peripheral ); }