1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-26 08:56:54 +00:00
CC-Tweaked/projects/common/src/client/java/dan200/computercraft
Jonathan Coates 6363164f2b
Fix creating a zero-sized pocket terminal
When the terminal data is not present, width/height are set to 0, rather
than the terminal's width/height. This meant we'd create an empty
terminal, which then crashes when we try to render it.

We now make the terminal nullable and initialise it the first time we
receive the terminal data. To prevent future mistakes, we hide
width/height, and use TerminalState.create everywhere.

Fixes #1765
2024-03-26 21:59:41 +00:00
..
client Fix creating a zero-sized pocket terminal 2024-03-26 21:59:41 +00:00
data/client Split some textures into sprite sheets 2023-08-27 18:02:51 +01:00