Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-09 13:00:05 +01:00
Fix typo
Dieser Commit ist enthalten in:
Ursprung
5a67363a78
Commit
f104a31966
@ -30,7 +30,7 @@ public class GenerateTreeBrush extends Brush {
|
|||||||
private int thickness = 1;
|
private int thickness = 1;
|
||||||
private int slopeChance = 40;
|
private int slopeChance = 40;
|
||||||
private int twistChance = 5; // This is a hidden value not available through Parameters. Otherwise messy.
|
private int twistChance = 5; // This is a hidden value not available through Parameters. Otherwise messy.
|
||||||
private int heightMininmum = 14;
|
private int heightMinimum = 14;
|
||||||
private int heightMaximum = 18;
|
private int heightMaximum = 18;
|
||||||
private int branchLength = 8;
|
private int branchLength = 8;
|
||||||
private int nodeMax = 4;
|
private int nodeMax = 4;
|
||||||
@ -356,7 +356,7 @@ public GenerateTreeBrush() {
|
|||||||
// ----------
|
// ----------
|
||||||
// Main Trunk
|
// Main Trunk
|
||||||
// ----------
|
// ----------
|
||||||
// Sets diretional preferences.
|
// Sets directional preferences.
|
||||||
int xPreference = this.randGenerator.nextInt(this.slopeChance);
|
int xPreference = this.randGenerator.nextInt(this.slopeChance);
|
||||||
int zPreference = this.randGenerator.nextInt(this.slopeChance);
|
int zPreference = this.randGenerator.nextInt(this.slopeChance);
|
||||||
|
|
||||||
@ -372,7 +372,7 @@ public GenerateTreeBrush() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Generates a height for trunk.
|
// Generates a height for trunk.
|
||||||
int height = this.randGenerator.nextInt(this.heightMaximum - this.heightMininmum + 1) + this.heightMininmum;
|
int height = this.randGenerator.nextInt(this.heightMaximum - this.heightMinimum + 1) + this.heightMinimum;
|
||||||
|
|
||||||
for (int p = 0; p < height; p++) {
|
for (int p = 0; p < height; p++) {
|
||||||
if (p > 3) {
|
if (p > 3) {
|
||||||
@ -397,7 +397,7 @@ public GenerateTreeBrush() {
|
|||||||
blockPositionY = blockPositionY + 1;
|
blockPositionY = blockPositionY + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generates branchs at top of trunk for each quadrant.
|
// Generates branches at top of trunk for each quadrant.
|
||||||
this.branchCreate(1, 1);
|
this.branchCreate(1, 1);
|
||||||
this.branchCreate(-1, 1);
|
this.branchCreate(-1, 1);
|
||||||
this.branchCreate(1, -1);
|
this.branchCreate(1, -1);
|
||||||
@ -411,7 +411,7 @@ public GenerateTreeBrush() {
|
|||||||
// ---------------
|
// ---------------
|
||||||
// Secondary Trunk
|
// Secondary Trunk
|
||||||
// ---------------
|
// ---------------
|
||||||
// Sets diretional preferences.
|
// Sets directional preferences.
|
||||||
xPreference = this.randGenerator.nextInt(this.slopeChance);
|
xPreference = this.randGenerator.nextInt(this.slopeChance);
|
||||||
zPreference = this.randGenerator.nextInt(this.slopeChance);
|
zPreference = this.randGenerator.nextInt(this.slopeChance);
|
||||||
|
|
||||||
@ -427,7 +427,7 @@ public GenerateTreeBrush() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Generates a height for trunk.
|
// Generates a height for trunk.
|
||||||
height = this.randGenerator.nextInt(this.heightMaximum - this.heightMininmum + 1) + this.heightMininmum;
|
height = this.randGenerator.nextInt(this.heightMaximum - this.heightMinimum + 1) + this.heightMinimum;
|
||||||
|
|
||||||
if (height > 4) {
|
if (height > 4) {
|
||||||
for (int p = 0; p < height; p++) {
|
for (int p = 0; p < height; p++) {
|
||||||
@ -451,7 +451,7 @@ public GenerateTreeBrush() {
|
|||||||
blockPositionY = blockPositionY + 1;
|
blockPositionY = blockPositionY + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generates branchs at top of trunk for each quadrant.
|
// Generates branches at top of trunk for each quadrant.
|
||||||
this.branchCreate(1, 1);
|
this.branchCreate(1, 1);
|
||||||
this.branchCreate(-1, 1);
|
this.branchCreate(-1, 1);
|
||||||
this.branchCreate(1, -1);
|
this.branchCreate(1, -1);
|
||||||
@ -569,17 +569,17 @@ public GenerateTreeBrush() {
|
|||||||
this.slopeChance = Integer.parseInt(parameter.replace("ts", ""));
|
this.slopeChance = Integer.parseInt(parameter.replace("ts", ""));
|
||||||
v.sendMessage(ChatColor.BLUE + "Trunk Slope set to " + this.slopeChance);
|
v.sendMessage(ChatColor.BLUE + "Trunk Slope set to " + this.slopeChance);
|
||||||
} else if (parameter.startsWith("minh")) { // Height Minimum
|
} else if (parameter.startsWith("minh")) { // Height Minimum
|
||||||
this.heightMininmum = Integer.parseInt(parameter.replace("minh", ""));
|
this.heightMinimum = Integer.parseInt(parameter.replace("minh", ""));
|
||||||
if (this.heightMininmum > this.heightMaximum) {
|
if (this.heightMinimum > this.heightMaximum) {
|
||||||
this.heightMininmum = this.heightMaximum;
|
this.heightMinimum = this.heightMaximum;
|
||||||
v.sendMessage(ChatColor.RED + "Minimum Height exceed than Maximum Height, has been set to " + this.heightMininmum + " Instead!");
|
v.sendMessage(ChatColor.RED + "Minimum Height exceed than Maximum Height, has been set to " + this.heightMinimum + " Instead!");
|
||||||
} else {
|
} else {
|
||||||
v.sendMessage(ChatColor.BLUE + "Minimum Height set to " + this.heightMininmum);
|
v.sendMessage(ChatColor.BLUE + "Minimum Height set to " + this.heightMinimum);
|
||||||
}
|
}
|
||||||
} else if (parameter.startsWith("maxh")) { // Height Maximum
|
} else if (parameter.startsWith("maxh")) { // Height Maximum
|
||||||
this.heightMaximum = Integer.parseInt(parameter.replace("maxh", ""));
|
this.heightMaximum = Integer.parseInt(parameter.replace("maxh", ""));
|
||||||
if (this.heightMininmum > this.heightMaximum) {
|
if (this.heightMinimum > this.heightMaximum) {
|
||||||
this.heightMaximum = this.heightMininmum;
|
this.heightMaximum = this.heightMinimum;
|
||||||
v.sendMessage(ChatColor.RED + "Maximum Height can't be lower than Minimum Height, has been set to " + this.heightMaximum + " Instead!");
|
v.sendMessage(ChatColor.RED + "Maximum Height can't be lower than Minimum Height, has been set to " + this.heightMaximum + " Instead!");
|
||||||
} else {
|
} else {
|
||||||
v.sendMessage(ChatColor.BLUE + "Maximum Roots set to " + this.heightMaximum);
|
v.sendMessage(ChatColor.BLUE + "Maximum Roots set to " + this.heightMaximum);
|
||||||
@ -607,7 +607,7 @@ public GenerateTreeBrush() {
|
|||||||
this.minRoots = 1;
|
this.minRoots = 1;
|
||||||
this.thickness = 1;
|
this.thickness = 1;
|
||||||
this.slopeChance = 40;
|
this.slopeChance = 40;
|
||||||
this.heightMininmum = 14;
|
this.heightMinimum = 14;
|
||||||
this.heightMaximum = 18;
|
this.heightMaximum = 18;
|
||||||
this.branchLength = 8;
|
this.branchLength = 8;
|
||||||
this.nodeMax = 4;
|
this.nodeMax = 4;
|
||||||
|
@ -4,9 +4,6 @@ import com.thevoxelbox.voxelsniper.Sniper;
|
|||||||
import org.bukkit.block.data.BlockData;
|
import org.bukkit.block.data.BlockData;
|
||||||
import org.bukkit.event.HandlerList;
|
import org.bukkit.event.HandlerList;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public class SniperReplaceMaterialChangedEvent extends SniperMaterialChangedEvent {
|
public class SniperReplaceMaterialChangedEvent extends SniperMaterialChangedEvent {
|
||||||
private static final HandlerList handlers = new HandlerList();
|
private static final HandlerList handlers = new HandlerList();
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren