diff --git a/gradle.properties b/gradle.properties index 110fb662f..f395aa0f3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,7 +10,7 @@ kotlin.jvm.target.validation.mode=error # Mod properties isUnstable=false -modVersion=1.103.1 +modVersion=1.104.0 # Minecraft properties: We want to configure this here so we can read it in settings.gradle mcVersion=1.19.4 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c012b09bb..ca2805f25 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -9,7 +9,7 @@ # Remember to update corresponding versions in fabric.mod.json/mods.toml fabric-api = "0.75.3+1.19.4" fabric-loader = "0.14.17" -forge = "45.0.6" +forge = "45.0.42" forgeSpi = "6.0.0" mixin = "0.8.5" parchment = "2023.03.12" diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/help/changelog.md b/projects/core/src/main/resources/data/computercraft/lua/rom/help/changelog.md index 295c5798f..a776f31c3 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/help/changelog.md +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/help/changelog.md @@ -1,3 +1,33 @@ +# New features in CC: Tweaked 1.104.0 + +* Update to Minecraft 1.19.4. +* Turtles can now right click items "into" certain blocks (cauldrons and hives by default, configurable with the `computercraft:turtle_can_use` block tag). +* Update Cobalt to 0.7: + * `table` methods and `ipairs` now use metamethods. + * Type errors now use the `__name` metatag. + * Coroutines no longer run on multiple threads. + * Timeout errors should be thrown more reliably. +* `speaker` program now reports an error on common unsupported audio formats. +* `multishell` now hides the implementation details of its terminal redirect from programs. +* Use VBO monitor renderer by default. +* Improve syntax errors when missing commas in tables, and on trailing commas in parameter lists. +* Turtles can now hold flags. +* Update several translations (Alessandro, chesiren, Erlend, RomanPlayer22). + +Several bug fixes: +* `settings.load` now ignores malformed values created by editing the `.settings` file by hand. +* Fix introduction dates on `os.cancelAlarm` and `os.cancelTimer` (MCJack123). +* Fix the REPL syntax reporting crashing on valid parses. +* Make writes to the ID file atomic. +* Obey stack limits when transferring items with Fabric's APIs. +* Ignore metatables in `textutils.serialize`. +* Correctly recurse into NBT lists when computing the NBT hash (Lemmmy). +* Fix advanced pocket computers rendering as greyscale. +* Fix stack overflow when using `shell` as a hashbang program. +* Fix websocket messages being empty when using a non-default compression settings. +* Fix `gps.locate` returning `nan` when receiving a duplicate location (Wojbie). +* Remove several thread safety issues inside Java-side argument parsing code. + # New features in CC: Tweaked 1.103.1 Several bug fixes: diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/help/whatsnew.md b/projects/core/src/main/resources/data/computercraft/lua/rom/help/whatsnew.md index ac9bad32e..4973b3df2 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/help/whatsnew.md +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/help/whatsnew.md @@ -1,7 +1,31 @@ -New features in CC: Tweaked 1.103.1 +New features in CC: Tweaked 1.104.0 + +* Update to Minecraft 1.19.4. +* Turtles can now right click items "into" certain blocks (cauldrons and hives by default, configurable with the `computercraft:turtle_can_use` block tag). +* Update Cobalt to 0.7: + * `table` methods and `ipairs` now use metamethods. + * Type errors now use the `__name` metatag. + * Coroutines no longer run on multiple threads. + * Timeout errors should be thrown more reliably. +* `speaker` program now reports an error on common unsupported audio formats. +* `multishell` now hides the implementation details of its terminal redirect from programs. +* Use VBO monitor renderer by default. +* Improve syntax errors when missing commas in tables, and on trailing commas in parameter lists. +* Turtles can now hold flags. +* Update several translations (Alessandro, chesiren, Erlend, RomanPlayer22). Several bug fixes: -* Fix values not being printed in the REPL. -* Fix `function f()` providing suboptimal parse errors in the REPL. +* `settings.load` now ignores malformed values created by editing the `.settings` file by hand. +* Fix introduction dates on `os.cancelAlarm` and `os.cancelTimer` (MCJack123). +* Fix the REPL syntax reporting crashing on valid parses. +* Make writes to the ID file atomic. +* Obey stack limits when transferring items with Fabric's APIs. +* Ignore metatables in `textutils.serialize`. +* Correctly recurse into NBT lists when computing the NBT hash (Lemmmy). +* Fix advanced pocket computers rendering as greyscale. +* Fix stack overflow when using `shell` as a hashbang program. +* Fix websocket messages being empty when using a non-default compression settings. +* Fix `gps.locate` returning `nan` when receiving a duplicate location (Wojbie). +* Remove several thread safety issues inside Java-side argument parsing code. Type "help changelog" to see the full version history. diff --git a/projects/core/src/test/resources/test-rom/spec/support/fake_computer.lua b/projects/core/src/test/resources/test-rom/spec/support/fake_computer.lua index 1529a25d2..a07cc7342 100644 --- a/projects/core/src/test/resources/test-rom/spec/support/fake_computer.lua +++ b/projects/core/src/test/resources/test-rom/spec/support/fake_computer.lua @@ -120,7 +120,6 @@ local function add_modem(owner, side) for _, adjacent in pairs(adjacent) do if adjacent.open[channel] then local distance = (adjacent.owner.position - owner.position):length() - print(("Distance %s .. %s => %d"):format(adjacent.owner.position, owner.position, distance)) adjacent.owner.queue_event("modem_message", adjacent.side, channel, reply_channel, payload, distance) end end diff --git a/projects/forge/src/main/java/dan200/computercraft/shared/platform/PlatformHelperImpl.java b/projects/forge/src/main/java/dan200/computercraft/shared/platform/PlatformHelperImpl.java index a8da64c3b..250ccbc2d 100644 --- a/projects/forge/src/main/java/dan200/computercraft/shared/platform/PlatformHelperImpl.java +++ b/projects/forge/src/main/java/dan200/computercraft/shared/platform/PlatformHelperImpl.java @@ -294,7 +294,7 @@ public class PlatformHelperImpl implements PlatformHelper { @Override public double getReachDistance(Player player) { - return player.getReachDistance(); + return player.getBlockReach(); } @Override