Plex-FAWE/worldedit-core/src
wizjany 1934006d14 Better enforce the Request lifetime.
Previously, the current request would just get a new EditSession when
one was created. Now, a Request is reset before and after:
 - a command is used and
 - an interact is fired with the platform
This means each action taken will get a single, non-reusable Request.

Note that this only applies to actions taken through the platform.
API users will not be using requests anyway, since things like Masks,
etc. will be constructed directly instead of being passed through the
platform's parsers and so on. (e.g. if a plugin loads a schematic into
the world with a mask, they should create the EditSession and mask it
directly, and not use that Mask again for another EditSession in another
World).

Also, get rid of a bunch of (some now-)unnecessary EditSession creation
during command dispatching.

Note that this also fixed the dynamic selection mask, which apparently
has been broken for some unknown amount of time.
2019-03-20 19:13:54 -04:00
..
legacy/java/com/sk89q/worldedit/blocks Fixed some bugs and cleanup some code. 2018-08-13 22:18:12 +10:00
main Better enforce the Request lifetime. 2019-03-20 19:13:54 -04:00
test/java/com/sk89q Switch to SLF4J logging. 2019-03-13 19:51:48 -07:00