Skip to content

Commit

Permalink
fix: litematica != litematica
Browse files Browse the repository at this point in the history
  • Loading branch information
phillychi3 committed Apr 21, 2024
1 parent 8708635 commit f01267a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t3dlitematica/objbuilder/toobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ def LitimaticaToObj(litematica: dict, TextureFolder: str, output: str = "./") ->
int(litematica["Metadata"]["EnclosingSize"]["z"]),
)
regonname = list(litematica["Regions"].keys())[0]
name = litematica["Metadata"]["Name"]
litematica = litematica["Regions"][regonname]["decode_BlockStates"]
return Objhandel(litematica["Metadata"]["Name"], litematica, size, TextureFolder, output)
return Objhandel(name, litematica, size, TextureFolder, output)

class Objhandel:
def __init__(self, name:str, data:List[dict], size:tuple[int,int,int],TextureFolder:str,outputfolder:str,show_error_block:bool=False) -> None:
Expand Down

0 comments on commit f01267a

Please sign in to comment.