Closed mindw0rm closed 4 years ago
PR needs some time, I just realized that I forgot some flag usages which were not relevant to my testing :/
Fixed in https://github.com/IntellectualSites/PlotSquared/commit/765a021ecdbf86ad3996546ec9d5a67a04d8550d, sorry but Jesse didn't see this one.
NOTICE:
Feature requests & Suggestions are to be submitted at the PlotSquared Suggestions tracker
Code contributions are to be done through PRs, tagging the specific issue ticket(s) if applicable.
DISCORD INVITE LINK and please, for the love of the little sanity we have left, use the correct channels!
BUG REPORT TEMPLATE:
Required Information section:
Server type:
select one
Minecraft Version:
select one
Server build info:
WorldEdit/FAWE versions:
Description of the problem:
The blocklist flags, i.e. use, break and place, stopped working with the newest version (4.390). This means that you cannot place/break/use blocks which are in those flags.
I tracked the issue down to this commit, where a Supplier<BlockState> is provided to EventUtil::checkPlayerBlockEvent, but the flags values are of type Set<BlockType>. Obviously the call to
contains
must fail.How to replicate:
/p flag add use lever
,/p flag add place sand
and/p flag add break sand
) of some plot. Put those blocks on the plot (e.g. a lever and some sand).Additional Information:
I already made a bugfix, you'll get a pull request soon.
Other plugins being used on the server:
none (except WorldEdit) - this is only a test server
Relevant console output, log lines, and/or screenshots:
n/a
Additional relevant comments/remarks:
I kept the preamble of the bug template, since it says that I should not remove it, but do you really want it? Imho everything above "Server config info" could be removed and the bug would be easier to read ...
AFFIRMATION OF COMPLETION: