Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 11:00:05 +01:00
Fixed case fallthroughs in BlockType.
Dieser Commit ist enthalten in:
Ursprung
fa82482823
Commit
2f19edca2a
@ -751,6 +751,8 @@ public enum BlockType {
|
||||
case BlockID.GRAVEL:
|
||||
if (random.nextDouble() >= 0.9) {
|
||||
return new BaseItemStack(ItemID.FLINT);
|
||||
} else {
|
||||
return new BaseItemStack(BlockID.GRAVEL);
|
||||
}
|
||||
|
||||
case BlockID.COAL_ORE:
|
||||
@ -770,7 +772,11 @@ public enum BlockType {
|
||||
return new BaseItemStack(ItemID.BED_ITEM);
|
||||
|
||||
case BlockID.LONG_GRASS:
|
||||
if (random.nextInt(8) == 0) return new BaseItemStack(ItemID.SEEDS);
|
||||
if (random.nextInt(8) == 0) {
|
||||
return new BaseItemStack(ItemID.SEEDS);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
case BlockID.DOUBLE_STEP:
|
||||
return new BaseItemStack(BlockID.STEP, 2, data);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren