1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

ProgressBarTextureMod

This commit is contained in:
Perttu Ahola 2010-12-24 11:44:26 +02:00
parent 1611f00865
commit 705de63dcd
9 changed files with 107 additions and 37 deletions

View file

@ -1991,7 +1991,9 @@ MapBlock * ServerMap::emergeBlock(
coal_rareness = 1;
if(rand()%coal_rareness == 0)
{
for(s16 i=0; i<coal_amount; i++)
u16 a = rand() % 16;
u16 amount = coal_amount * a*a*a / 1000;
for(s16 i=0; i<amount; i++)
{
v3s16 cp(
(rand()%(MAP_BLOCKSIZE-2))+1,