mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-11 02:07:38 +00:00
Fixed case fallthroughs in BlockType.
This commit is contained in:
parent
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);
|
||||
|
Loading…
Reference in New Issue
Block a user