1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-12 11:10:29 +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'
def mc_version = "1.12.2"
version = "1.81.0"
def main_version = "1.81.0"
version = "${mc_version}-${main_version}"
group = "org.squiddev"
archivesBaseName = "cc-tweaked-${mc_version}"
archivesBaseName = "cc-tweaked"
minecraft {
version = "${mc_version}-14.23.4.2749"
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.
// snapshot_YYYYMMDD snapshot are built nightly.
@ -148,7 +149,7 @@ task proguardMove(dependsOn: proguard) {
reobfJar.dependsOn proguardMove
processResources {
inputs.property "version", project.version
inputs.property "version", main_version
inputs.property "mcversion", mc_version
def hash = 'none'
@ -170,7 +171,7 @@ processResources {
include 'mcmod.info'
include 'assets/computercraft/lua/rom/help/credits.txt'
expand 'version': project.version,
expand 'version': main_version,
'mcversion': mc_version,
'gitcontributors': contributors.sort(false, String.CASE_INSENSITIVE_ORDER).join('\n')
}

View File

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