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

The BlockState class allows invalid block ids #49

Closed SmylerMC closed 3 months ago

SmylerMC commented 3 months ago

It should not be allowed to create BlockStates that contain obviously invalid data that would be rejected by the game. Block ids and property names must adder to a strict naming convention enforced by the game's code. It should be enforced by Litemapy as well so invalid block states fail early and user get a nice exception message that explains the problem, to avoid confusion as in #48 .