Fixed Stone not dropping Cobblestone

also fixed obsidian having stone texture and name
This commit is contained in:
piebot committed 2026-03-14 20:50:53 +03:00
1 parent bfb9568c1a
commit 61e4d2cd36
4 files changed
+18 -3

No files matched your search

+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;
}