mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
Fixed case fallthroughs in BlockType.
This commit is contained in:
parent
fa82482823
commit
2f19edca2a
@ -751,6 +751,8 @@ public static BaseItemStack getBlockDrop(int id, short data) {
|
||||
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 static BaseItemStack getBlockDrop(int id, short data) {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user