From c06012ffcd74f5ac93e94014d03c712a7db7b2e2 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Tue, 20 Mar 2012 15:53:33 +1300 Subject: [PATCH] added comment support to mcitems.py --- plugins/mcitems.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/mcitems.py b/plugins/mcitems.py index 2fbb92c..588900b 100644 --- a/plugins/mcitems.py +++ b/plugins/mcitems.py @@ -24,6 +24,8 @@ class Recipe(object): with open("./plugins/data/recipes.txt") as f: for line in f.readlines(): + if line.startswith("//"): + continue line = line.strip() match = pattern.match(line) if not match: @@ -37,6 +39,8 @@ ids = [] with open("./plugins/data/itemids.txt") as f: for line in f.readlines(): + if line.startswith("//"): + continue parts = line.strip().split() id = parts[0] name = " ".join(parts[1:])