MinecraftConsoles/Minecraft.World/GlowstoneTile.cpp
Brayden M df180fabd2 refactor: Fix include paths for compatibility
MSVC allows backslashes and case-insensitive include paths, which causes
build failures on other compilers. This commit:
- Converts all include backslashes to forward slashes.
- Fixes capitalization mismatches to match the actual filesystem.
2026-03-14 00:42:04 -05:00

22 lines
541 B
C++

#include "stdafx.h"
#include "GlowstoneTile.h"
#include "net.minecraft.world.item.h"
Glowstonetile::Glowstonetile(int id, Material *material) : Tile(id, material)
{
}
int Glowstonetile::getResourceCountForLootBonus(int bonusLevel, Random *random)
{
return Mth::clamp(getResourceCount(random) + random->nextInt(bonusLevel + 1), 1, 4);
}
int Glowstonetile::getResourceCount(Random *random)
{
return 2 + random->nextInt(3);
}
int Glowstonetile::getResource(int data, Random *random, int playerBonusLevel)
{
return Item::yellowDust->id;
}