feat: remove experience
This commit is contained in:
1 parent
bdfe5350cd
commit
41d166afed
83 files changed
+47
-1501
No files matched your search
@@ -78,13 +78,6 @@ int RedStoneOreTile::getResourceCount(Random *random)
|
||||
void RedStoneOreTile::spawnResources(Level *level, int x, int y, int z, int data, float odds, int playerBonusLevel)
|
||||
{
|
||||
Tile::spawnResources(level, x, y, z, data, odds, playerBonusLevel);
|
||||
|
||||
// also spawn experience if the block is broken
|
||||
if (getResource(data, level->random, playerBonusLevel) != id)
|
||||
{
|
||||
int magicCount = 1 + level->random->nextInt(5);
|
||||
popExperience(level, x, y, z, magicCount);
|
||||
}
|
||||
}
|
||||
|
||||
void RedStoneOreTile::animateTick(Level *level, int x, int y, int z, Random *random)
|
||||
|
||||
Reference in new issue
Block a user