1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-04 07:32:59 +00:00

Merge branch 'master' into mc-1.14.x

This commit is contained in:
SquidDev
2020-01-14 08:52:59 +00:00
4 changed files with 10 additions and 17 deletions

View File

@@ -364,20 +364,17 @@ public class PeripheralAPI implements ILuaAPI, IAPIEnvironment.IPeripheralChange
case 2:
{
// getMethods
String[] methods = null;
ComputerSide side = ComputerSide.valueOfInsensitive( getString( args, 0 ) );
if( side != null )
{
synchronized( m_peripherals )
{
PeripheralWrapper p = m_peripherals[side.ordinal()];
if( p != null )
{
methods = p.getMethods();
}
if( p != null ) return new Object[] { p.getMethods() };
}
}
return methods != null ? new Object[] { new HashMap<>() } : null;
return null;
}
case 3:
{