Fix for invalid input error when script is ran from world during bootup.

This commit is contained in:
Akkadius 2014-11-16 21:37:47 -06:00
parent 9d6248886c
commit c749155ad2

View File

@ -135,6 +135,10 @@ sub ShowMenuPrompt {
while (1) { while (1) {
{ {
local $| = 1; local $| = 1;
if(!$menu_show && $ARGV[0] eq "ran_from_world"){
$menu_show++;
next;
}
print MenuOptions(), '> '; print MenuOptions(), '> ';
} }
@ -151,7 +155,7 @@ sub ShowMenuPrompt {
} }
else { else {
if($ARGV[0] ne "ran_from_world"){ if($ARGV[0] ne "ran_from_world"){
warn "\n\nInvalid selection\n\n"; # warn "\n\nInvalid selection\n\n";
} }
} }
} }