Prevent some Action prompts from closing the editor on invalid number

This commit is contained in:
PikaMug 2020-10-24 01:50:13 -04:00
parent e0c15ec225
commit b0848ab2d4
6 changed files with 11 additions and 11 deletions

View File

@ -377,7 +377,7 @@ public class ActionMainPrompt extends ActionsEditorNumericPrompt {
case 3:
return new ActionMainPrompt(context);
default:
return null;
return new ActionMobListPrompt(context);
}
}
}

View File

@ -146,7 +146,7 @@ public class EffectPrompt extends ActionsEditorNumericPrompt {
case 3:
return new ActionMainPrompt(context);
default:
return null;
return new EffectPrompt(context);
}
}
@ -288,7 +288,7 @@ public class EffectPrompt extends ActionsEditorNumericPrompt {
return new EffectSoundListPrompt(context);
}
default:
return null;
return new EffectSoundListPrompt(context);
}
}
}

View File

@ -248,7 +248,7 @@ public class PlayerPrompt extends ActionsEditorNumericPrompt {
case 10:
return new ActionMainPrompt(context);
default:
return null;
return new PlayerPrompt(context);
}
}
@ -399,7 +399,7 @@ public class PlayerPrompt extends ActionsEditorNumericPrompt {
case 3:
return new ActionMainPrompt(context);
default:
return new ActionMainPrompt(context);
return new PlayerItemListPrompt(context);
}
}
}
@ -569,7 +569,7 @@ public class PlayerPrompt extends ActionsEditorNumericPrompt {
return new PlayerPotionEffectPrompt(context);
}
default:
return null;
return new PlayerPotionEffectPrompt(context);
}
}
}

View File

@ -125,7 +125,7 @@ public class TimerPrompt extends ActionsEditorNumericPrompt {
case 3:
return new ActionMainPrompt(context);
default:
return null;
return new TimerPrompt(context);
}
}

View File

@ -154,7 +154,7 @@ public class WeatherPrompt extends ActionsEditorNumericPrompt {
case 4:
return new ActionMainPrompt(context);
default:
return null;
return new WeatherPrompt(context);
}
}
@ -270,7 +270,7 @@ public class WeatherPrompt extends ActionsEditorNumericPrompt {
case 4:
return new ActionMainPrompt(context);
default:
return null;
return new StormPrompt(context);
}
}
}
@ -480,7 +480,7 @@ public class WeatherPrompt extends ActionsEditorNumericPrompt {
return new ActionMainPrompt(context);
}
default:
return null;
return new ThunderPrompt(context);
}
}
}

View File

@ -301,7 +301,7 @@ public class PlayerPrompt extends QuestsEditorNumericPrompt {
case 3:
return new PlayerPrompt(context);
default:
return new PlayerPrompt(context);
return new ItemsInMainHandListPrompt(context);
}
}
}