aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/SnowTile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/SnowTile.cpp')
-rw-r--r--Minecraft.World/SnowTile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.World/SnowTile.cpp b/Minecraft.World/SnowTile.cpp
index dde16379..e73f5ceb 100644
--- a/Minecraft.World/SnowTile.cpp
+++ b/Minecraft.World/SnowTile.cpp
@@ -25,11 +25,11 @@ void SnowTile::tick(Level *level, int x, int y, int z, Random *random)
if (level->getBrightness(LightLayer::Block, x, y, z) > 11)
{
this->spawnResources(level, x, y, z, level->getData(x, y, z), 0);
- level->setTile(x, y, z, 0);
+ level->removeTile(x, y, z);
}
}
bool SnowTile::shouldTileTick(Level *level, int x,int y,int z)
{
- return level->getBrightness(LightLayer::Block, x, y, z) > 11;
+ return level->getBrightness(LightLayer::Block, x, y, z) > 11;
} \ No newline at end of file