1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-06-25 22:52:51 +00:00

Add back a couple of methods for CCEmuX compat

This commit is contained in:
SquidDev 2019-02-23 12:46:09 +00:00
parent a4cd1fe77d
commit 35645b3d93
2 changed files with 14 additions and 5 deletions

View File

@ -26,15 +26,16 @@ apply plugin: 'maven-publish'
apply plugin: 'maven' apply plugin: 'maven'
def mc_version = "1.12.2" def mc_version = "1.12.2"
version = "1.81.0" def main_version = "1.81.0"
version = "${mc_version}-${main_version}"
group = "org.squiddev" group = "org.squiddev"
archivesBaseName = "cc-tweaked-${mc_version}" archivesBaseName = "cc-tweaked"
minecraft { minecraft {
version = "${mc_version}-14.23.4.2749" version = "${mc_version}-14.23.4.2749"
runDir = "run" runDir = "run"
replace '${version}', project.version replace '${version}', main_version
// the mappings can be changed at any time, and must be in the following format. // the mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD snapshot are built nightly. // snapshot_YYYYMMDD snapshot are built nightly.
@ -148,7 +149,7 @@ task proguardMove(dependsOn: proguard) {
reobfJar.dependsOn proguardMove reobfJar.dependsOn proguardMove
processResources { processResources {
inputs.property "version", project.version inputs.property "version", main_version
inputs.property "mcversion", mc_version inputs.property "mcversion", mc_version
def hash = 'none' def hash = 'none'
@ -170,7 +171,7 @@ processResources {
include 'mcmod.info' include 'mcmod.info'
include 'assets/computercraft/lua/rom/help/credits.txt' include 'assets/computercraft/lua/rom/help/credits.txt'
expand 'version': project.version, expand 'version': main_version,
'mcversion': mc_version, 'mcversion': mc_version,
'gitcontributors': contributors.sort(false, String.CASE_INSENSITIVE_ORDER).join('\n') 'gitcontributors': contributors.sort(false, String.CASE_INSENSITIVE_ORDER).join('\n')
} }

View File

@ -546,6 +546,12 @@ public class Computer
ComputerThread.queueTask( task, computer ); ComputerThread.queueTask( task, computer );
} }
@Deprecated
public IPeripheral getPeripheral( int side )
{
return m_internalEnvironment.getPeripheral( side );
}
@Deprecated @Deprecated
public void setPeripheral( int side, IPeripheral peripheral ) public void setPeripheral( int side, IPeripheral peripheral )
{ {
@ -564,4 +570,6 @@ public class Computer
{ {
advance(); advance();
} }
public static final String[] s_sideNames = IAPIEnvironment.SIDE_NAMES;
} }