aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/craftdef.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/craftdef.cpp b/src/craftdef.cpp
index 9cd1d8c7e..afc41303f 100644
--- a/src/craftdef.cpp
+++ b/src/craftdef.cpp
@@ -954,7 +954,9 @@ public:
try {
tmpout = def->getOutput(input, gamedef);
- if(tmpout.item.substr(0,output.item.length()) == output.item)
+ if((tmpout.item.substr(0,output.item.length()) == output.item) &&
+ ((tmpout.item[output.item.length()] == 0) ||
+ (tmpout.item[output.item.length()] == ' ')))
{
// Get output, then decrement input (if requested)
input = def->getInput(output, gamedef);