Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 02:20:07 +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:
|
case BlockID.GRAVEL:
|
||||||
if (random.nextDouble() >= 0.9) {
|
if (random.nextDouble() >= 0.9) {
|
||||||
return new BaseItemStack(ItemID.FLINT);
|
return new BaseItemStack(ItemID.FLINT);
|
||||||
|
} else {
|
||||||
|
return new BaseItemStack(BlockID.GRAVEL);
|
||||||
}
|
}
|
||||||
|
|
||||||
case BlockID.COAL_ORE:
|
case BlockID.COAL_ORE:
|
||||||
@ -770,7 +772,11 @@ public enum BlockType {
|
|||||||
return new BaseItemStack(ItemID.BED_ITEM);
|
return new BaseItemStack(ItemID.BED_ITEM);
|
||||||
|
|
||||||
case BlockID.LONG_GRASS:
|
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:
|
case BlockID.DOUBLE_STEP:
|
||||||
return new BaseItemStack(BlockID.STEP, 2, data);
|
return new BaseItemStack(BlockID.STEP, 2, data);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren