diff --git a/lib/DDG/Goodie/Minecraft.pm b/lib/DDG/Goodie/Minecraft.pm index 4cf06f007..e2cda00f7 100644 --- a/lib/DDG/Goodie/Minecraft.pm +++ b/lib/DDG/Goodie/Minecraft.pm @@ -45,6 +45,7 @@ handle remainder => sub { # Recipe found, let's return an answer. my $plaintext = 'Minecraft ' . $recipe->{'name'} . ' ingredients: ' . $recipe->{'ingredients'} . '.'; + return $plaintext, structured_answer => { @@ -57,7 +58,7 @@ handle remainder => sub { }, meta => { sourceName => "Minecraft Wiki", - sourceUrl => "http://minecraft.gamepedia.com/Crafting#Complete_recipe_list" + sourceUrl => "http://minecraft.gamepedia.com/" . uri_esc( $recipe->{'name'} ) #testing }, templates => { group => 'info', diff --git a/share/goodie/minecraft/crafting-guide.json b/share/goodie/minecraft/crafting-guide.json index 6028364dc..05aceafd4 100644 --- a/share/goodie/minecraft/crafting-guide.json +++ b/share/goodie/minecraft/crafting-guide.json @@ -827,7 +827,7 @@ }, { "name": "Stained Glass", - "regex": "(?:(colored|white|orange|magenta|light ?blue|yellow|lime|pink|gray|light ?gray|cyan|purple|blue|brown|green|red|black) ?stained ?glass(es)?)", + "regex": "(?:(colored|white|orange|magenta|light ?blue|yellow|lime|pink|gray|light ?gray|cyan|purple|blue|brown|green|red|black) ?(stained)? ?glass(es)?)", "image": "http://www.minecraftxl.com/images/wiki/recipes/stained-glass-crafting.gif", "ingredients": "8 Glass + 1 Dye", "description": "Stained Glass is the dyed version of regular glass that can be used for decoration purposes."