Skip blank itemframes.

This may be done improperly. Accessing ref.Item may create an empty compound, and I haven't checked if blank frames have an empty compound for Item or not.
This commit is contained in:
David Vierra 2015-07-19 02:10:00 -10:00
parent 5b963e6222
commit 544214ecea

View File

@ -339,9 +339,13 @@ class ItemFrameMesh(EntityMeshBase):
if limitBox and ref.Position not in limitBox:
continue
try:
item = ref.Item
if item.itemType.internalName != "minecraft:filled_map":
continue
except KeyError:
log.exception("Error while getting ItemFrame item ID in frame at %s", ref.TilePos)
continue
mapID = item.Damage