From cdc91a8e5d698c1ae6159468c6034580fc255164 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Sun, 8 Jan 2023 18:29:36 +0000 Subject: [PATCH] Fix stack overflow in logging code --- .../core/src/main/java/dan200/computercraft/core/Logging.java | 2 +- .../main/resources/data/computercraft/lua/rom/help/changelog.md | 1 + .../main/resources/data/computercraft/lua/rom/help/whatsnew.md | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/core/src/main/java/dan200/computercraft/core/Logging.java b/projects/core/src/main/java/dan200/computercraft/core/Logging.java index 778f57ac6..4c4c02004 100644 --- a/projects/core/src/main/java/dan200/computercraft/core/Logging.java +++ b/projects/core/src/main/java/dan200/computercraft/core/Logging.java @@ -18,7 +18,7 @@ public final class Logging { static { HTTP_ERROR.add(COMPUTER_ERROR); - JAVA_ERROR.add(JAVA_ERROR); + JAVA_ERROR.add(COMPUTER_ERROR); } private Logging() { 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 7a72313f8..bca37eef6 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 @@ -13,6 +13,7 @@ Several bug fixes: * Fix speakers playing too loudly. * Change where turtles drop items from, reducing the chance that items clip through blocks. * Fix the `computer_threads` config option not applying under Fabric. +* Fix stack overflow in logging code. # New features in CC: Tweaked 1.102.0 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 a556e5051..ffbea797c 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 @@ -13,5 +13,6 @@ Several bug fixes: * Fix speakers playing too loudly. * Change where turtles drop items from, reducing the chance that items clip through blocks. * Fix the `computer_threads` config option not applying under Fabric. +* Fix stack overflow in logging code. Type "help changelog" to see the full version history.