1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-09-10 14:25:59 +00:00

Change peripheral name of turtle to match CC:T behaviour (#74)

This commit is contained in:
Patbox
2022-03-23 21:20:50 +01:00
parent e294ee2bd5
commit 00ae44c204
3 changed files with 15 additions and 2 deletions

View File

@@ -423,7 +423,13 @@ public abstract class TileComputerBase extends TileGeneric implements IComputerT
public IPeripheral getPeripheral( Direction side )
{
if( proxy == null ) proxy = new ComputerProxy( () -> this );
return new ComputerPeripheral( "computer", proxy );
return new ComputerPeripheral( getPeripheralName(), proxy );
}
@Nonnull
protected String getPeripheralName()
{
return "computer";
}
@Nonnull

View File

@@ -500,6 +500,13 @@ public class TileTurtle extends TileComputerBase implements ITurtleTile, Default
return nbt;
}
@Nonnull
@Override
protected String getPeripheralName()
{
return "turtle";
}
// Privates
private boolean hasPeripheralUpgradeOnSide( ComputerSide side )