mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-04 23:40:00 +00:00
Merge branch 'master' into mc-1.14.x
This commit is contained in:
commit
bf6d017ad1
@ -1,5 +1,5 @@
|
||||
# Mod properties
|
||||
mod_version=1.86.1
|
||||
mod_version=1.86.2
|
||||
|
||||
# Minecraft properties (update mods.toml when changing)
|
||||
mc_version=1.14.4
|
||||
|
@ -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:
|
||||
{
|
||||
|
@ -1,3 +1,7 @@
|
||||
# New features in CC: Tweaked 1.86.2
|
||||
|
||||
* Fix peripheral.getMethods returning an empty table
|
||||
|
||||
# New features in CC: Tweaked 1.86.1
|
||||
|
||||
* Add a help message to the Lua REPL's exit function
|
||||
|
@ -1,13 +1,5 @@
|
||||
New features in CC: Tweaked 1.86.1
|
||||
New features in CC: Tweaked 1.86.2
|
||||
|
||||
* Add a help message to the Lua REPL's exit function
|
||||
* Add more MOTD messages. (osmarks)
|
||||
* GPS requests are now made anonymously (osmarks)
|
||||
* Minor memory usage improvements to Cobalt VM.
|
||||
|
||||
And several bug fixes:
|
||||
* Fix error when calling `write` with a number.
|
||||
* Add missing assertion to `io.write`.
|
||||
* Fix incorrect coordinates in `mouse_scroll` events.
|
||||
* Fix peripheral.getMethods returning an empty table
|
||||
|
||||
Type "help changelog" to see the full version history.
|
||||
|
Loading…
Reference in New Issue
Block a user