mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Removed the allow-extra-data-values option.
This reverts parts of e477141
.
Data values could never go past 15 anyway,
making the option pointless and misleading.
This commit is contained in:
parent
a8f4013cbb
commit
3acc82e97b
@ -110,7 +110,6 @@ public abstract class LocalConfiguration {
|
||||
public boolean showFirstUseVersion = true;
|
||||
public int butcherDefaultRadius = -1;
|
||||
public int butcherMaxRadius = -1;
|
||||
public boolean allowExtraDataValues = false;
|
||||
public boolean allowSymlinks = false;
|
||||
|
||||
/**
|
||||
|
@ -436,7 +436,7 @@ public class WorldEdit {
|
||||
// Parse the block data (optional)
|
||||
try {
|
||||
data = (typeAndData.length > 1 && typeAndData[1].length() > 0) ? Integer.parseInt(typeAndData[1]) : (allowNoData ? -1 : 0);
|
||||
if ((data > 15 && !config.allowExtraDataValues) || (data < 0 && !(allAllowed && data == -1))) {
|
||||
if (data > 15 || (data < 0 && !(allAllowed && data == -1))) {
|
||||
data = 0;
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
|
@ -106,7 +106,6 @@ public class PropertiesConfiguration extends LocalConfiguration {
|
||||
scriptsDir = getString("craftscript-dir", scriptsDir);
|
||||
butcherDefaultRadius = getInt("butcher-default-radius", butcherDefaultRadius);
|
||||
butcherMaxRadius = getInt("butcher-max-radius", butcherMaxRadius);
|
||||
allowExtraDataValues = getBool("allow-extra-data-values", allowExtraDataValues);
|
||||
allowSymlinks = getBool("allow-symbolic-links", allowSymlinks);
|
||||
|
||||
LocalSession.MAX_HISTORY_SIZE = Math.max(15, getInt("history-size", 15));
|
||||
|
@ -79,9 +79,6 @@ public class YAMLConfiguration extends LocalConfiguration {
|
||||
disallowedBlocks = new HashSet<Integer>(config.getIntList("limits.disallowed-blocks", null));
|
||||
allowedDataCycleBlocks = new HashSet<Integer>(config.getIntList("limits.allowed-data-cycle-blocks", null));
|
||||
|
||||
allowExtraDataValues = config.getBoolean("limits.allow-extra-data-values", false);
|
||||
|
||||
|
||||
registerHelp = config.getBoolean("register-help", true);
|
||||
logCommands = config.getBoolean("logging.log-commands", logCommands);
|
||||
logFile = config.getString("logging.file", logFile);
|
||||
|
Loading…
Reference in New Issue
Block a user