mirror of
https://github.com/PikaMug/Quests.git
synced 2025-02-08 08:31:19 +01:00
Prevent some Action prompts from closing the editor on invalid number
This commit is contained in:
parent
e0c15ec225
commit
b0848ab2d4
@ -377,7 +377,7 @@ public class ActionMainPrompt extends ActionsEditorNumericPrompt {
|
||||
case 3:
|
||||
return new ActionMainPrompt(context);
|
||||
default:
|
||||
return null;
|
||||
return new ActionMobListPrompt(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ public class TimerPrompt extends ActionsEditorNumericPrompt {
|
||||
case 3:
|
||||
return new ActionMainPrompt(context);
|
||||
default:
|
||||
return null;
|
||||
return new TimerPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -301,7 +301,7 @@ public class PlayerPrompt extends QuestsEditorNumericPrompt {
|
||||
case 3:
|
||||
return new PlayerPrompt(context);
|
||||
default:
|
||||
return new PlayerPrompt(context);
|
||||
return new ItemsInMainHandListPrompt(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user