aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/GravelTile.cpp
blob: 1ee866a9848c0a6c6d410b863f157a55f4736b4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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 (random->nextInt(10 - playerBonusLevel * 3) == 0) return Item::flint->id;
    return id;
}