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