# ReAnimated 1.4.2Fix — crash fix for Minecraft 26.2
One crash fix. **Minecraft 26.2 only** — no other version is affected, and nothing else changed.
---
## 🇬🇧 English
### 💥 Fixed: random crash in menus
On 26.2 the game could crash while rendering, most often in Options or other screens with a scrollable list:
```
java.lang.IllegalArgumentException: Scissor size must be >0, was 308x0
```
**What was going on.** When a screen animates, everything on it moves — including the region Minecraft uses to clip the scrollable list. Minecraft 26.2 converts that region to screen pixels like this:
```
top = region.top × guiScale ← not limited
bottom = min(region.bottom × guiScale, window height) ← limited
```
The bottom edge is clamped to the window, the top edge isn't. So once the region slid below the bottom of the screen, the height came out **negative**, and 26.2 throws instead of simply drawing nothing. Older versions accept it silently, which is why only 26.2 crashed.
The usual trigger was **toggling fullscreen with F11**: the window changes size mid-animation, the clip region is recalculated against the new screen, and on a short screen it lands off the edge. At 854×480 with GUI scale 2 there are only 240 usable pixels of height, so there's very little headroom — which is why it hit players and not testing.
**The fix.** ReAnimated now performs the same conversion Minecraft does and, when the region ends up completely off-screen, skips setting the clip for that draw. Nothing is lost visually — there was nothing to draw inside it anyway.
If you're on 26.2, replace your current file with this one. Your config carries over untouched.
---
## 🇷🇺 Русский
### 💥 Исправлено: случайный краш в меню
На 26.2 игра могла падать во время отрисовки — чаще всего в настройках или на других экранах с прокручиваемым списком:
```
java.lang.IllegalArgumentException: Scissor size must be >0, was 308x0
```
**Что происходило.** Когда экран анимируется, вместе с ним едет всё, включая область, по которой Minecraft обрезает прокручиваемый список. В 26.2 эта область переводится в пиксели экрана так:
```
верх = верх области × масштаб GUI ← без ограничения
низ = min(низ области × масштаб GUI, высота окна) ← с ограничением
```
Нижняя граница ограничивается размером окна, а верхняя — нет. Поэтому, когда область уезжала ниже экрана, высота получалась **отрицательной**, и 26.2 бросает ошибку вместо того, чтобы просто ничего не нарисовать. Старые версии такое принимают молча — потому и падала только 26.2.
Обычный спусковой крючок — **переключение полноэкранного режима по F11**: окно меняет размер прямо во время анимации, область обрезки пересчитывается под новый экран и на невысоком экране оказывается за краем. При 854×480 и масштабе GUI 2 остаётся всего 240 пикселей высоты — запаса почти нет, поэтому баг доставался игрокам, а не тестам.
**Как починено.** Мод повторяет тот же расчёт, что делает Minecraft, и если область целиком оказалась за пределами экрана — пропускает установку обрезки для этой отрисовки. Визуально не теряется ничего: рисовать в ней всё равно было нечего.
Если ты на 26.2 — замени файл этим. Конфиг подхватится как есть.
---
### Загрузчики и версии / Loaders & versions
- **Fabric / Quilt**, Minecraft **26.2** (нужен Fabric API). / **Fabric / Quilt**, Minecraft **26.2** (requires Fabric API).
- Версия мода — `26.2+1.4.2Fix`. / Mod version is `26.2+1.4.2Fix`.
- Остальные версии остаются на **1.4.2** (1.21.4 – 26.1) и **1.4.0** (1.21.1 – 1.21.3) — они этим багом не затронуты. / Every other version stays on **1.4.2** (1.21.4 – 26.1) and **1.4.0** (1.21.1 – 1.21.3) — they are not affected.
*mod by @pycodder — https://modrinth.com/user/pycodder*
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }