1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-13 11:40:29 +00:00

Merge pull request #198 from SquidDev-CC/hotfix/no-reset-redstone

Do not reset redstone inputs when adding peripherals
This commit is contained in:
Daniel Ratcliffe 2017-05-05 17:17:15 +01:00 committed by GitHub
commit 3eae944923

View File

@ -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 );
}