Bump for 1.91.0

This commit is contained in:
SquidDev 2020-08-23 15:35:58 +01:00
parent 0bb5515055
commit 183b342071
4 changed files with 27 additions and 7 deletions

View File

@ -1,5 +1,5 @@
# Mod properties
mod_version=1.90.2
mod_version=1.91.0
# Minecraft properties (update mods.toml when changing)
mc_version=1.15.2

View File

@ -83,9 +83,9 @@ public long getLong( int index ) throws LuaException
public ByteBuffer getBytes( int index ) throws LuaException
{
LuaValue value = varargs.arg( index + 1 );
if( !(value instanceof LuaString) ) throw LuaValues.badArgument( index, "string", value.typeName() );
if( !(value instanceof LuaBaseString) ) throw LuaValues.badArgument( index, "string", value.typeName() );
LuaString str = (LuaString) value;
LuaString str = ((LuaBaseString) value).strvalue();
return ByteBuffer.wrap( str.bytes, str.offset, str.length ).asReadOnlyBuffer();
}
@ -94,9 +94,9 @@ public Optional<ByteBuffer> optBytes( int index ) throws LuaException
{
LuaValue value = varargs.arg( index + 1 );
if( value.isNil() ) return Optional.empty();
if( !(value instanceof LuaString) ) throw LuaValues.badArgument( index, "string", value.typeName() );
if( !(value instanceof LuaBaseString) ) throw LuaValues.badArgument( index, "string", value.typeName() );
LuaString str = (LuaString) value;
LuaString str = ((LuaBaseString) value).strvalue();
return Optional.of( ByteBuffer.wrap( str.bytes, str.offset, str.length ).asReadOnlyBuffer() );
}
}

View File

@ -1,3 +1,15 @@
# New features in CC: Tweaked 1.91.0
* [Generic peripherals] Expose NBT hashes of items to inventory methods.
* Bump Cobalt version
* Optimise handling of string concatenation.
* Add string.{pack,unpack,packsize} (MCJack123)
And several bug fixes:
* Escape non-ASCII characters in JSON strings (neumond)
* Make field names in fs.attributes more consistent (abby)
* Fix textutils.formatTime correctly handle 12 AM (R93950X)
# New features in CC: Tweaked 1.90.2
* Fix generic peripherals not being registered outside a dev environment.

View File

@ -1,5 +1,13 @@
New features in CC: Tweaked 1.90.2
New features in CC: Tweaked 1.91.0
* Fix generic peripherals not being registered outside a dev environment.
* [Generic peripherals] Expose NBT hashes of items to inventory methods.
* Bump Cobalt version
* Optimise handling of string concatenation.
* Add string.{pack,unpack,packsize} (MCJack123)
And several bug fixes:
* Escape non-ASCII characters in JSON strings (neumond)
* Make field names in fs.attributes more consistent (abby)
* Fix textutils.formatTime correctly handle 12 AM (R93950X)
Type "help changelog" to see the full version history.