mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-30 12:51:17 +08:00
Add defaultVerticalHeight to other configurations
This commit is contained in:
parent
3fdc1d1ab6
commit
0898adac99
@ -3,7 +3,7 @@
|
||||
#
|
||||
# About editing this file:
|
||||
# - DO NOT USE TABS. You MUST use spaces or Bukkit will complain and post
|
||||
# errors. If you use an editor, like Notepad++ (recommended for Windows
|
||||
# errors. If you use an editor, like Notepad++ (recommended for Windows
|
||||
# users), you must configure it to "replace tabs with spaces."
|
||||
# This can be changed in Settings > Preferences > Language Menu.
|
||||
# - Don't get rid of indentations. They are indented so some entries that are
|
||||
@ -20,6 +20,8 @@ limits:
|
||||
max-blocks-changed:
|
||||
default: -1
|
||||
maximum: -1
|
||||
vertical-height:
|
||||
default: 256
|
||||
max-polygonal-points:
|
||||
default: -1
|
||||
maximum: 20
|
||||
|
@ -62,6 +62,9 @@ public void load() {
|
||||
maxChangeLimit = Math.max(-1,
|
||||
config.getInt("limits.max-blocks-changed.maximum", maxChangeLimit));
|
||||
|
||||
defaultVerticalHeight = Math.max(1,
|
||||
config.getInt("limits.vertical-height.default", defaultVerticalHeight));
|
||||
|
||||
defaultMaxPolygonalPoints = Math.max(-1,
|
||||
config.getInt("limits.max-polygonal-points.default", defaultMaxPolygonalPoints));
|
||||
maxPolygonalPoints = Math.max(-1,
|
||||
|
@ -20,6 +20,7 @@ use-inventory-creative-override=false
|
||||
log-file=worldedit.log
|
||||
log-format=[%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS %4$s]: %5$s%6$s%n
|
||||
max-changed-blocks=-1
|
||||
default-vertical-height=256
|
||||
nav-wand-distance=50
|
||||
butcher-default-radius=-1
|
||||
default-max-changed-blocks=-1
|
||||
|
@ -20,6 +20,7 @@ use-inventory-creative-override=false
|
||||
log-file=worldedit.log
|
||||
log-format=[%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS %4$s]: %5$s%6$s%n
|
||||
max-changed-blocks=-1
|
||||
default-vertical-height=256
|
||||
nav-wand-distance=50
|
||||
butcher-default-radius=-1
|
||||
default-max-changed-blocks=-1
|
||||
|
@ -69,6 +69,8 @@ public void load() {
|
||||
defaultChangeLimit = Math.max(-1, node.getNode("limits", "max-blocks-changed", "default").getInt(defaultChangeLimit));
|
||||
maxChangeLimit = Math.max(-1, node.getNode("limits", "max-blocks-changed", "maximum").getInt(maxChangeLimit));
|
||||
|
||||
defaultVerticalHeight = Math.max(1, node.getNode("limits", "vertical-height", "default").getInt(defaultVerticalHeight));
|
||||
|
||||
defaultMaxPolygonalPoints = Math.max(-1, node.getNode("limits", "max-polygonal-points", "default").getInt(defaultMaxPolygonalPoints));
|
||||
maxPolygonalPoints = Math.max(-1, node.getNode("limits", "max-polygonal-points", "maximum").getInt(maxPolygonalPoints));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user