Fixed blocks sometimes replacing other blocks when placed on the side of a slab

This commit is contained in:
CobaltXII
2019-01-04 16:17:23 -05:00
parent 8bea3cf5ff
commit 5e65777259

View File

@@ -740,6 +740,13 @@ int main(int argc, char** argv)
py -= iy * 0.001f;
pz -= iz * 0.001f;
// Can't place blocks inside other blocks.
if (the_world->get_id_safe(px, py, pz) != id_air)
{
break;
}
// Find the hitbox of the block that is going to
// be placed.