aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/GravelTile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/GravelTile.cpp')
-rw-r--r--Minecraft.World/GravelTile.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Minecraft.World/GravelTile.cpp b/Minecraft.World/GravelTile.cpp
index 1ee866a9..86c34962 100644
--- a/Minecraft.World/GravelTile.cpp
+++ b/Minecraft.World/GravelTile.cpp
@@ -8,6 +8,7 @@ GravelTile::GravelTile(int type) : HeavyTile(type)
int GravelTile::getResource(int data, Random *random, int playerBonusLevel)
{
- if (random->nextInt(10 - playerBonusLevel * 3) == 0) return Item::flint->id;
- return id;
+ if (playerBonusLevel > 3) playerBonusLevel = 3;
+ if (random->nextInt(10 - playerBonusLevel * 3) == 0) return Item::flint->id;
+ return id;
} \ No newline at end of file