aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/GravelTile.cpp
blob: 86c3496245ded0496e8a35d6d75faf3ba01b50b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "stdafx.h"
#include "GravelTile.h"
#include "net.minecraft.world.item.h"

GravelTile::GravelTile(int type) : HeavyTile(type)
{
}

int GravelTile::getResource(int data, Random *random, int playerBonusLevel)
{
	if (playerBonusLevel > 3) playerBonusLevel = 3;
	if (random->nextInt(10 - playerBonusLevel * 3) == 0) return Item::flint->id;
	return id;
}