Really fixed #216

This commit is contained in:
yvt 2014-03-30 16:25:17 +09:00
parent cf27886b71
commit 867b7cf6bf

View File

@ -235,6 +235,14 @@ namespace spades {
for(const auto& creation: createdBlocks) {
const auto& pos = creation.first;
const auto& color = creation.second;
if(map->IsSolid(pos.x, pos.y, pos.z)) {
map->Set(pos.x, pos.y, pos.z, true,
color.x |
(color.y << 8) |
(color.z << 16) |
(100UL << 24));
continue;
}
mapWrapper->AddBlock(pos.x, pos.y, pos.z,
color.x |
(color.y << 8) |