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:
@@ -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
|
||||
|
@@ -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 )
|
||||
|
Reference in New Issue
Block a user