Fixed Stone not dropping Cobblestone

also fixed obsidian having stone texture and name
This commit is contained in:
piebot
2026-03-14 20:50:53 +03:00
parent bfb9568c1a
commit 61e4d2cd36
4 changed files with 18 additions and 3 deletions
+14
View File
@@ -28,8 +28,22 @@ unsigned int StoneTile::getDescriptionId(int iData)
return STONE_NAMES[iData];
}
int StoneTile::getResource(int data, Random* random, int playerBonusLevel)
{
if (data < 0 || data >= STONE_NAMES_LENGTH) data = 0;
if (data == 0) {
return Tile::cobblestone_Id;
}
return Tile::stone_Id;
}
int StoneTile::getSpawnResourcesAuxValue(int data)
{
if (data < 0 || data >= STONE_NAMES_LENGTH) data = 0;
return data;
}