mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-27 13:03:36 +00:00
10 lines
336 B
C++
10 lines
336 B
C++
#include "../Platform/stdafx.h"
|
|
#include "GravelTile.h"
|
|
#include "../Headers/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;
|
|
} |