Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 82e9f07

Browse files
committed
fix a crash when tabbing out
1 parent fc4642e commit 82e9f07

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ org.gradle.parallel = true
55
# Dependencies
66
minecraft_version = 1.19
77
quilt_mappings = 1
8-
loader_version = 0.17.1-beta.2
8+
loader_version = 0.17.1-beta.4
99

1010
# QSL version number is shared between all the modules.
1111
qsl_version = 2.0.0-beta.8
@@ -14,6 +14,6 @@ qsl_version = 2.0.0-beta.8
1414
quilted_fabric_api_version = 2.0.0-beta.1+0.56.3
1515

1616
# Mod Properties
17-
version = 2.0.1+1.19
17+
version = 2.0.2+1.19
1818
maven_group = io.github.axolotlclient
1919
archives_base_name = AxolotlClient

src/main/java/io/github/axolotlclient/modules/motionblur/MotionBlur.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ public void init() {
3333
}
3434

3535
public void onUpdate() {
36-
if(shader == null ||
36+
if( (shader == null ||
3737
MinecraftClient.getInstance().getWindow().getWidth()!=lastWidth ||
38-
MinecraftClient.getInstance().getWindow().getHeight()!=lastHeight) {
38+
MinecraftClient.getInstance().getWindow().getHeight()!=lastHeight ) &&
39+
MinecraftClient.getInstance().getWindow().getWidth() > 0 &&
40+
MinecraftClient.getInstance().getWindow().getHeight() > 0) {
3941
currentBlur=getBlur();
4042
try {
4143
shader = new ShaderEffect(client.getTextureManager(),

0 commit comments

Comments
 (0)