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:
wizjany
2013-11-26 10:36:39 -05:00
parent a8f4013cbb
commit 3acc82e97b
4 changed files with 1 additions and 6 deletions

View File

@ -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) {