mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-26 08:56:54 +00:00
Do not reset redstone inputs when adding peripherals
As of 8abff95441
, peripherals no longer
block redstone input. As this is no longer the case, redstone levels
should not be reset.
This commit is contained in:
parent
c413b9af04
commit
4b95ed5d53
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user