Worldedit or bedwars map regeneration cause lighting not to be updated and enderchests to be invisible
What behaviour is expected:
What you expected to see My bedwars plugin regenerates the map by saving a copy of the map into storage and repasting it to regenerate it round after round. Worldedit is affected as well, and it's expected to be able to copy and paste a schematic onto the map.
What behaviour is observed:
What you actually saw
The problem with this is that paper does not update the lighting of any pasted blocks that are lighting blocks, and dark spots around the map start to appear where there should be light.

Furthermore, some tile entities such as enderchests are physically there and interactable, but are invisible to the player. This is not a client side glitch, as numerous people have reported it.

Steps/models to reproduce:
This may include a build schematic, a video, or detailed instructions to help reconstruct the issue Do any large schematic paste into the world using worldedit or use any bedwars plugin like: https://www.spigotmc.org/resources/screamingbedwars-1-9-1-16.63714/ or https://www.spigotmc.org/resources/marcelys-bedwars-%E2%96%BA-4-0-%E2%96%BA-supports-1-7-1-16.13622/
When large map operations happen such as //paste or a regeneration of the bedwars map, lighting glitches appear
Plugin list:
A list of your plugins Worldedit, Mbedwars, luckperms, worldguard, voidgenerator
Paper version:
Paste the output of running /version on your server WITH the Minecraft version. latest is not a version; we require the output of /version so we can properly track down the issue.

Anything else:
Anything else you think may help us resolve the problem
Duplicate of #4294 I believe. They're at least related. Enderchest gone poof is certainly interesting though.
Furthermore, some tile entities such as enderchests are physically there and interactable, but are invisible to the player. This is not a client side glitch, as numerous people have reported it.
This part of the report isn't a new issue - I believe the same happens on Spigot 1.8 servers.
This issue is still present in 1.19 (paper-81)
The block on the middle of the lower row is "light block" with light level of 15
Plugins: mbedwars, worldguard, worldedit, voidgen, luckperms