Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gave melon slice item a name distinct from the melon block #158

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
2 changes: 1 addition & 1 deletion items.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@
357 Cookie items.png 12,5
358 Map items.png 12,3 x1
359 Shears items.png 13,5 +238
360 Melon items.png 13,6
360 Melon_Slice items.png 13,6
361 Pumpkin_Seeds items.png 13,3
362 Melon_Seeds items.png 14,3
363 Raw_Beef items.png 9,6
Expand Down
10 changes: 5 additions & 5 deletions materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,18 @@ def addYamlBlocksFromFile(self, filename):
self.addYamlBlocks(blockyaml)

except Exception, e:
log.warn(u"Exception while loading block info from %s: %s", f, e)
traceback.print_exc()
log.error(u"Exception while loading block info from %s: %s", f, e)
raise

def addYamlBlocks(self, blockyaml):
self.yamlDatas.append(blockyaml)
for block in blockyaml['blocks']:
try:
self.addYamlBlock(block)
except Exception, e:
log.warn(u"Exception while parsing block: %s", e)
traceback.print_exc()
log.warn(u"Block definition: \n%s", pformat(block))
log.error(u"Exception while parsing block: %s", e)
log.error(u"Block definition: \n%s", pformat(block))
raise

def addYamlBlock(self, kw):
blockID = kw['id']
Expand Down
Loading