added comment support to mcitems.py
This commit is contained in:
parent
c35f53407a
commit
c06012ffcd
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,8 @@ class Recipe(object):
|
||||||
|
|
||||||
with open("./plugins/data/recipes.txt") as f:
|
with open("./plugins/data/recipes.txt") as f:
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
|
if line.startswith("//"):
|
||||||
|
continue
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
match = pattern.match(line)
|
match = pattern.match(line)
|
||||||
if not match:
|
if not match:
|
||||||
|
@ -37,6 +39,8 @@ ids = []
|
||||||
|
|
||||||
with open("./plugins/data/itemids.txt") as f:
|
with open("./plugins/data/itemids.txt") as f:
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
|
if line.startswith("//"):
|
||||||
|
continue
|
||||||
parts = line.strip().split()
|
parts = line.strip().split()
|
||||||
id = parts[0]
|
id = parts[0]
|
||||||
name = " ".join(parts[1:])
|
name = " ".join(parts[1:])
|
||||||
|
|
Reference in a new issue