SmylerMC / litemapy

Litemapy's goal is to provide an easy to use way to read and edit Litematica's schematic file format
GNU General Public License v3.0
52 stars 6 forks source link

Schematic.load() fails with schematics containing tile entities #25

Closed UpsideDownFoxxo closed 1 year ago

UpsideDownFoxxo commented 1 year ago

Whenever a schematic contains a tile entity, the program will exit with the following error:

File "project\venv\lib\site-packages\litemapy\schematic.py", line 321, in fromnbt
    block = TileEntity.fromnbt(tentity)
AttributeError: type object 'TileEntity' has no attribute 'fromnbt'

Tested with the following schematic and code: schem = Schematic.load("test.litematic")

test.zip (contains a single shulker box without items inside)

SmylerMC commented 1 year ago

I cannot reproduce your issue with the provided schematic.

Can you check that you are using the latest version of Litemapy (0.7.2b0) ?

UpsideDownFoxxo commented 1 year ago

Huh. I Installed it through PIP, it gave me version 0.3.1a0 I will try it out with the new version then

UpsideDownFoxxo commented 1 year ago

Alright, the new version appears to fix it. Pip seems to want to install the version mentioned above, but when downloading it from Github it works correctly