first commit
This commit is contained in:
13
Minecraft.World/GravelTile.cpp
Normal file
13
Minecraft.World/GravelTile.cpp
Normal file
@@ -0,0 +1,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;
|
||||
}
|
||||
Reference in New Issue
Block a user