mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-05-01 15:04:14 +00:00
Merge branch 'mc-1.15.x' into mc-1.16.x
This commit is contained in:
commit
670db97fc7
@ -1,5 +1,5 @@
|
|||||||
# Mod properties
|
# Mod properties
|
||||||
mod_version=1.96.0
|
mod_version=1.97.0
|
||||||
|
|
||||||
# Minecraft properties (update mods.toml when changing)
|
# Minecraft properties (update mods.toml when changing)
|
||||||
mc_version=1.16.5
|
mc_version=1.16.5
|
||||||
|
@ -173,16 +173,15 @@ handleMetatable = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
local defaultInput = setmetatable({
|
local function make_file(handle)
|
||||||
_handle = { readLine = _G.read },
|
return setmetatable({ _handle = handle }, handleMetatable)
|
||||||
}, handleMetatable)
|
end
|
||||||
|
|
||||||
local defaultOutput = setmetatable({
|
local defaultInput = make_file({ readLine = _G.read })
|
||||||
_handle = { write = _G.write },
|
|
||||||
}, handleMetatable)
|
|
||||||
|
|
||||||
local defaultError = setmetatable({
|
local defaultOutput = make_file({ write = _G.write })
|
||||||
_handle = {
|
|
||||||
|
local defaultError = make_file({
|
||||||
write = function(...)
|
write = function(...)
|
||||||
local oldColour
|
local oldColour
|
||||||
if term.isColour() then
|
if term.isColour() then
|
||||||
@ -192,8 +191,7 @@ local defaultError = setmetatable({
|
|||||||
_G.write(...)
|
_G.write(...)
|
||||||
if term.isColour() then term.setTextColour(oldColour) end
|
if term.isColour() then term.setTextColour(oldColour) end
|
||||||
end,
|
end,
|
||||||
},
|
})
|
||||||
}, handleMetatable)
|
|
||||||
|
|
||||||
local currentInput = defaultInput
|
local currentInput = defaultInput
|
||||||
local currentOutput = defaultOutput
|
local currentOutput = defaultOutput
|
||||||
@ -316,7 +314,7 @@ function open(filename, mode)
|
|||||||
local file, err = fs.open(filename, sMode)
|
local file, err = fs.open(filename, sMode)
|
||||||
if not file then return nil, err end
|
if not file then return nil, err end
|
||||||
|
|
||||||
return setmetatable({ _handle = file }, handleMetatable)
|
return make_file(file)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Get or set the current output file.
|
--- Get or set the current output file.
|
||||||
|
@ -1,3 +1,29 @@
|
|||||||
|
# New features in CC: Tweaked 1.97.0
|
||||||
|
|
||||||
|
* Update several translations (Anavrins, Jummit, Naheulf).
|
||||||
|
* Add button to view a computer's folder to `/computercraft dump`.
|
||||||
|
* Allow cleaning dyed turtles in a cauldron.
|
||||||
|
* Add scale subcommand to `monitor` program (MCJack123).
|
||||||
|
* Add option to make `textutils.serialize` not write an indent (magiczocker10).
|
||||||
|
* Allow comparing vectors using `==` (fatboychummy).
|
||||||
|
* Improve HTTP error messages for SSL failures.
|
||||||
|
* Allow `craft` program to craft unlimited items (fatboychummy).
|
||||||
|
* Impose some limits on various command queues.
|
||||||
|
* Add buttons to shutdown and terminate to computer GUIs.
|
||||||
|
* Add program subcompletion to several programs (Wojbie).
|
||||||
|
* Update the `help` program to accept and (partially) highlight markdown files.
|
||||||
|
* Remove config option for the debug API.
|
||||||
|
* Allow setting the subprotocol header for websockets.
|
||||||
|
|
||||||
|
And several bug fixes:
|
||||||
|
* Fix NPE when using a treasure disk when no treasure disks are available.
|
||||||
|
* Prevent command computers discarding command ouput when certain game rules are off.
|
||||||
|
* Fix turtles not updating peripherals when upgrades are unequipped (Ronan-H).
|
||||||
|
* Fix computers not shutting down on fatal errors within the Lua VM.
|
||||||
|
* Speakers now correctly stop playing when broken, and sound follows noisy turtles and pocket computers.
|
||||||
|
* Update the `wget` to be more resiliant in the face of user-errors.
|
||||||
|
* Fix exiting `paint` typing "e" in the shell.
|
||||||
|
|
||||||
# New features in CC: Tweaked 1.96.0
|
# New features in CC: Tweaked 1.96.0
|
||||||
|
|
||||||
* Use lightGrey for folders within the "list" program.
|
* Use lightGrey for folders within the "list" program.
|
||||||
|
@ -1,19 +1,27 @@
|
|||||||
New features in CC: Tweaked 1.96.0
|
New features in CC: Tweaked 1.97.0
|
||||||
|
|
||||||
* Use lightGrey for folders within the "list" program.
|
* Update several translations (Anavrins, Jummit, Naheulf).
|
||||||
* Add getLimit to inventory peripherals.
|
* Add button to view a computer's folder to `/computercraft dump`.
|
||||||
* Expose the generic peripheral system to the public API.
|
* Allow cleaning dyed turtles in a cauldron.
|
||||||
* Add cc.expect.range (Lupus590).
|
* Add scale subcommand to `monitor` program (MCJack123).
|
||||||
* Allow calling cc.expect directly (MCJack123).
|
* Add option to make `textutils.serialize` not write an indent (magiczocker10).
|
||||||
* Numerous improvements to documentation.
|
* Allow comparing vectors using `==` (fatboychummy).
|
||||||
|
* Improve HTTP error messages for SSL failures.
|
||||||
|
* Allow `craft` program to craft unlimited items (fatboychummy).
|
||||||
|
* Impose some limits on various command queues.
|
||||||
|
* Add buttons to shutdown and terminate to computer GUIs.
|
||||||
|
* Add program subcompletion to several programs (Wojbie).
|
||||||
|
* Update the `help` program to accept and (partially) highlight markdown files.
|
||||||
|
* Remove config option for the debug API.
|
||||||
|
* Allow setting the subprotocol header for websockets.
|
||||||
|
|
||||||
And several bug fixes:
|
And several bug fixes:
|
||||||
* Fix paintutils.drawLine incorrectly sorting coordinates (lilyzeiset).
|
* Fix NPE when using a treasure disk when no treasure disks are available.
|
||||||
* Improve JEI's handling of turtle/pocket upgrade recipes.
|
* Prevent command computers discarding command ouput when certain game rules are off.
|
||||||
* Correctly handle sparse arrays in cc.pretty.
|
* Fix turtles not updating peripherals when upgrades are unequipped (Ronan-H).
|
||||||
* Fix crashes when a turtle places a monitor (baeuric).
|
* Fix computers not shutting down on fatal errors within the Lua VM.
|
||||||
* Fix very large resource files being considered empty.
|
* Speakers now correctly stop playing when broken, and sound follows noisy turtles and pocket computers.
|
||||||
* Allow turtles to use compostors.
|
* Update the `wget` to be more resiliant in the face of user-errors.
|
||||||
* Fix dupe bug when colouring turtles.
|
* Fix exiting `paint` typing "e" in the shell.
|
||||||
|
|
||||||
Type "help changelog" to see the full version history.
|
Type "help changelog" to see the full version history.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user