mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-28 02:35:13 +00:00
Allow turtle upgrades to act as tools and peripherals
This may be useful when you want your tool to also provide additional methods. For instance, a pickaxe could provide methods to check whether it can break the block in front.
This commit is contained in:
@@ -649,7 +649,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user