Skip to content

Commit

Permalink
Fix null pointer exception with chat screen tick method
Browse files Browse the repository at this point in the history
  • Loading branch information
telvarost committed Sep 18, 2024
1 parent 455830e commit 956b499
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Improve exception handling when failing to retrieve player skin
- Fix small bug with chat screen null point exception
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=b1.7.3+build.8
loader_version=0.14.24-babric.1

# Mod Properties
mod_version = 2.0.1
mod_version = 2.0.2
maven_group = pl.telvarost
archives_base_name = mojangfixstationapi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ private void onInit(CallbackInfo ci) {

@Inject(method = "tick", at = @At("HEAD"), cancellable = true)
private void onTick(CallbackInfo ci) {
textField.tick();
if (null != textField) {
textField.tick();
}
ci.cancel();
}

Expand Down

0 comments on commit 956b499

Please sign in to comment.