1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-09-12 07:15: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

@@ -2,7 +2,7 @@
org.gradle.jvmargs=-Xmx3G org.gradle.jvmargs=-Xmx3G
# Mod properties # Mod properties
mod_version=1.100.4 mod_version=1.100.5
# Minecraft properties # Minecraft properties
mc_version=1.18.2 mc_version=1.18.2

View File

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

View File

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