FastAsyncWorldEdit icon indicating copy to clipboard operation
FastAsyncWorldEdit copied to clipboard

AbstractDelegateExtent requires FaweMaskManager to work

Open Invvk opened this issue 3 years ago • 5 comments

Server Implementation

Paper

Server Version

1.17.1

Describe the bug

As the title says, this issue prevents use of custom extent if the plugin doesn't provide a custom FaweMaskManager. the issue is that Extent.setBlock will always return false and it won't send the changes, which makes almost all worldedit commands not working (//set,//replace... etc.. not sure if there are others).

so, it won't work if:

  • There is no FaweMaskManager provided by my plugin itself
  • if the provided FaweMaskManager.getMask(LocalPlayer, Location):
    • returns null
    • returns a dummy FaweMask with randomly selected points
    • if you are not inside the region that has been specified in the getMask(LocalPlayer, Location) (see below)

To understand this issue I will use this picture:

First case: no FaweMaskManager. it will break no matter what.

Second case: Using the custom AbstractDelegateExtent , a custom FaweMask with the minimum and the maximum point is selected randomly. if as an example if I use (//set,//replace etc...) commands and I want my custom AbstractDelegateExtent to set all blocks to sponge blocks regarding the user's input specifically in setBlock(BlockVector3, block) inside the redstone area it won't work. However if I change the minimum and maximum position pointing to the redstone area in the picture, it will work only inside the redstone area.

Third case: FaweMaskManager, with the getMask(LocalPlayer, Location) using the global region as minimum and maximum points. it will work everywhere and as expected.

To Reproduce

  1. Download This plugin.
  2. start the server.
  3. add this to your /plugins/WorldGuard/worlds/world/regions.yml.
  4. modify allowed-plugin like this inside /plugins/FastAsyncWorldEdit/config.yml.
  5. make sure you are not op and you have access to worldedit commands and don't forget to add permission fawe.fawe-bug-report & fawe.worldguard
  6. reload FAWE.
  7. try //set 1 inside the region I provided and it should ignore your input and set it to sponge block.
  8. now test it outside the region and it should not work at all, not even changing the blocks to stone.
  9. type /makeitglobal and restart the server. (This will set the minimum and maximum points using global region)
  10. now test it in and outside the region, it should ignore your input and set it to sponge blocks.
  11. type /breakitall and restart the server. (This will prevent the mask from being added)
  12. now test it in and outside the region, worldedit commands should stop working.
  13. to revert back to the original state type /makeitdefault

Expected behaviour

The expected behaviour is that AbstractDelegateExtent should work without relying on the fact that if the plugin provides a FaweMaskManager.

Screenshots / Videos

No response

Error log (if applicable)

No response

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/15824e698b8f4d5a9071d36a7b7d12cc

Fawe Version

1.17-336;0ed9872

Checklist

  • [X] I have included a Fawe debugpaste.
  • [X] I am using the newest build from https://ci.athion.net/job/FastAsyncWorldEdit-1.17/ and the issue still persists.

Anything else?

This only applies to players who is not op but have the permission to use WorldEdit. But the question here is this how it is intended to work?

Invvk avatar Sep 29 '21 15:09 Invvk

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If the issue is still present and can be reproduced, please let the team know. Thank you for your contributions.

stale[bot] avatar Nov 28 '21 23:11 stale[bot]

I'd like to express my interest in this issue and that I'd like to see it fixed as it would allow the worldedit flag of WorldGuardExtraFlags to work again.

Folas1337 avatar May 19 '22 21:05 Folas1337

I believe I'd found the root cause of this some time ago, but have since forgotten and I cannot find it again :))

dordsor21 avatar Jun 16 '22 17:06 dordsor21

@dordsor21 what can we do for now?

OneLiteFeather avatar Apr 16 '23 21:04 OneLiteFeather

I'd like to express my interest in this issue and that I'd like to see it fixed as it would allow the worldedit flag of WorldGuardExtraFlags to work again.

Does it work with newer versions again?

OneLiteFeather avatar Mar 17 '24 14:03 OneLiteFeather