mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-05 08:03:01 +00:00
Move API registration into separate classes
There's several reasons for this change: - Try to make ComputerCraft.java less monolithic by moving functionality into separate module-specific classes. - Hopefully make the core class less Minecraft dependent, meaning emulators are a little less dependent on anything outside of /core. Note we still need /some/ methods in the main ComputerCraft class in order to maintain backwards compatibility with Plethora and Computronics.
This commit is contained in:
@@ -494,11 +494,7 @@ public final class ComputerCraftAPI
|
||||
{
|
||||
try
|
||||
{
|
||||
if( computerCraft != null )
|
||||
{
|
||||
return computerCraft.getMethod( name, args );
|
||||
}
|
||||
return null;
|
||||
return computerCraft != null ? computerCraft.getMethod( name, args ) : null;
|
||||
}
|
||||
catch( NoSuchMethodException e )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user