mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-30 21:23:00 +00:00 
			
		
		
		
	Bump for 1.91.0
This commit is contained in:
		| @@ -1,5 +1,5 @@ | |||||||
| # Mod properties | # Mod properties | ||||||
| mod_version=1.90.2 | mod_version=1.91.0 | ||||||
|  |  | ||||||
| # Minecraft properties (update mods.toml when changing) | # Minecraft properties (update mods.toml when changing) | ||||||
| mc_version=1.15.2 | mc_version=1.15.2 | ||||||
|   | |||||||
| @@ -83,9 +83,9 @@ class VarargArguments implements IArguments | |||||||
|     public ByteBuffer getBytes( int index ) throws LuaException |     public ByteBuffer getBytes( int index ) throws LuaException | ||||||
|     { |     { | ||||||
|         LuaValue value = varargs.arg( index + 1 ); |         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(); |         return ByteBuffer.wrap( str.bytes, str.offset, str.length ).asReadOnlyBuffer(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
| @@ -94,9 +94,9 @@ class VarargArguments implements IArguments | |||||||
|     { |     { | ||||||
|         LuaValue value = varargs.arg( index + 1 ); |         LuaValue value = varargs.arg( index + 1 ); | ||||||
|         if( value.isNil() ) return Optional.empty(); |         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() ); |         return Optional.of( ByteBuffer.wrap( str.bytes, str.offset, str.length ).asReadOnlyBuffer() ); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -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 | # New features in CC: Tweaked 1.90.2 | ||||||
|  |  | ||||||
| * Fix generic peripherals not being registered outside a dev environment. | * Fix generic peripherals not being registered outside a dev environment. | ||||||
|   | |||||||
| @@ -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. | Type "help changelog" to see the full version history. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 SquidDev
					SquidDev