-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crashes when rendering monitors of varying sizes
When calling .flip(), we limit the size of the buffer. However, this limit is not reset when writing the next time, which means we get out-of-bounds errors, even if the buffer is /technically/ big enough. Clearing the buffer before drawing (rather than just resetting the position) is enough to fix this. Fixes #476 (and closes #477, which is a duplicate)
- Loading branch information
Showing
4 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Mod properties | ||
mod_version=1.89.0 | ||
mod_version=1.89.1 | ||
|
||
# Minecraft properties | ||
mc_version=1.12.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
src/main/resources/assets/computercraft/lua/rom/help/changelog.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 2 additions & 7 deletions
9
src/main/resources/assets/computercraft/lua/rom/help/whatsnew.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
New features in CC: Tweaked 1.89.0 | ||
New features in CC: Tweaked 1.89.1 | ||
|
||
* Compress monitor data, reducing network traffic by a significant amount. | ||
* Allow limiting the bandwidth monitor updates use. | ||
* Several optimisations to monitor rendering (@Lignum) | ||
|
||
And several bug fixes: | ||
* Fix settings.load failing on defined settings. | ||
* Fix crashes when rendering monitors of varying sizes. | ||
|
||
Type "help changelog" to see the full version history. |