Re-add support for the old WorldEdit save format on a load-only basis. Implemented as worldedit.deserialize_old(), and documented in README.md. //load will now transparently detect these files and load them correctly.

This commit is contained in:
Anthony Zhang
2012-07-19 22:54:26 -04:00
parent 2c2d7fdec1
commit 2ecdd6cb1d
3 changed files with 45 additions and 4 deletions

View File

@ -179,6 +179,14 @@ Loads the nodes represented by string `value` at position `originpos`.
Returns the number of nodes deserialized.
### worldedit.deserialize_old(originpos, value)
Loads the nodes represented by string `value` at position `originpos`, using the older table-based WorldEdit format.
This function is deprecated, and should not be used unless there is a need to support legacy WorldEdit save files.
Returns the number of nodes deserialized.
License
-------
Copyright 2012 sfan5 and Anthony Zhang (Temperest)