mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-06-26 07:02:55 +00:00
Add back a couple of methods for CCEmuX compat
This commit is contained in:
parent
a4cd1fe77d
commit
35645b3d93
11
build.gradle
11
build.gradle
@ -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')
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user