Skip to content

Commit

Permalink
Fix disabeling extensions in config crashing on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
ScribbleTAS committed Dec 17, 2024
1 parent 15c324f commit 528ccec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ private double parseDouble(String doublestring) throws ParseException {
@Override
public void onClear() {
currentValues = null;
if (monitorContainer == null)
return;
try {
monitorContainer.clearMemory();
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class LabelFileCommandExtension extends PlaybackFileCommandExtension {
public LabelFileCommandExtension() {
enabled = true;
}

@Override
public String getExtensionName() {
return "tasmod_label@v1";
Expand Down Expand Up @@ -58,6 +58,8 @@ public void onPlayback(long tick, TickContainer tickContainer) {

@Override
public void onClear() {
if (label == null)
return;
try {
label.clearMemory();
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public void onPlayback(long tick, TickContainer tickContainer) {

@Override
public void onClear() {
if (hud == null)
return;
try {
hud.clearMemory();
} catch (IOException e) {
Expand Down

0 comments on commit 528ccec

Please sign in to comment.