1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-22 08:04:49 +00:00

Merge pull request #182 from SquidDev-CC/feature/turtle-upgrade-both

Allow turtle upgrades to act as tools and peripherals
This commit is contained in:
Daniel Ratcliffe
2017-05-04 22:02:09 +01:00
committed by GitHub
5 changed files with 22 additions and 4 deletions

View File

@@ -691,7 +691,7 @@ public class TileTurtle extends TileComputerBase
case 5: upgrade = getUpgrade( TurtleSide.Left ); break;
default: return false;
}
if( upgrade != null && upgrade.getType() == TurtleUpgradeType.Peripheral )
if( upgrade != null && upgrade.getType().isPeripheral() )
{
return true;
}