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:
parent
5b963e6222
commit
544214ecea
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user