mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 23:26:45 +01:00
fix: use the correct block parser as the "default"
This commit is contained in:
parent
7f59c03f06
commit
666db41469
@ -31,6 +31,8 @@ import com.sk89q.worldedit.world.registry.LegacyMapper;
|
|||||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link BlockState} related utility methods
|
* {@link BlockState} related utility methods
|
||||||
*/
|
*/
|
||||||
@ -43,7 +45,8 @@ public final class BlockUtil {
|
|||||||
PARSER_CONTEXT.setRestricted(false);
|
PARSER_CONTEXT.setRestricted(false);
|
||||||
PARSER_CONTEXT.setPreferringWildcard(false);
|
PARSER_CONTEXT.setPreferringWildcard(false);
|
||||||
PARSER_CONTEXT.setTryLegacy(true);
|
PARSER_CONTEXT.setTryLegacy(true);
|
||||||
PARSER = WorldEdit.getInstance().getBlockFactory().getParsers().get(0);
|
List<InputParser<BaseBlock>> parsers = WorldEdit.getInstance().getBlockFactory().getParsers();
|
||||||
|
PARSER = parsers.get(parsers.size() - 1); // Default parser is always at the end
|
||||||
}
|
}
|
||||||
|
|
||||||
private BlockUtil() {
|
private BlockUtil() {
|
||||||
|
Loading…
Reference in New Issue
Block a user