Plex-FAWE/worldedit-core
Jordan b797655d0c
Only implement cache to MaskingExtent when off main thread (#1789)
* Only implement cache to MaskingExtent when off main thread
 - It's possible for a [Chunk/Char]FilterBlock to be used multiple times in the same "tree" of method calls meaning the mutable paramets (particularly index) get increased within a loop, causing AIOOBs and other issues
 - This is only possible on the main thread due to the handling of submissions in SingleThreadQueueExtent, as it ensures all operation remains on the main thread to prevent deadlocks
 - Therefore safe usage of FilterBlocks requires that main-threaded operation create a new [Chunk/Char]FilterBlock instance each time
 - Further fixes #1681

* Fix typos

* Switch to LongFunction
2022-06-13 23:42:40 +02:00
..
doctools Port initial paperweight classes to 1.18 folder structure 2021-11-30 12:35:34 +01:00
src Only implement cache to MaskingExtent when off main thread (#1789) 2022-06-13 23:42:40 +02:00
build.gradle.kts [ci skip] build: Switch to bom (#1778) 2022-06-10 01:26:48 +02:00