WorldEdit

WorldEdit

43M Downloads

Blocks already partially changed in "BEFORE_CHANGE" stage in EditSessionEvent

LadyCailinBot opened this issue ยท 2 comments

commented

WORLDEDIT-3101 - Reported by Intelli

I'm attempting to use the BEFORE_CHANGE stage from the EditSessionEvent for logging block changes.

However, container inventories (e.g. chests) appear to already be wiped when this event runs, making it impossible to compare container states for transaction logging.

Using the "BEFORE_REORDER" stage works properly. However, according to sk89q, "injecting a callback early on is not a good idea if you want something that is meant to see all changes"

Is this intentional behavior, or is the BEFORE_CHANGE stage supposed to fire before any block modifications have been made?

Thanks

commented

Comment by sk89q

This should be fixed now with bf06229

commented

Comment by Intelli

Tested, appears to be working properly now. :)