Can't place slabs, crops, crosses or fire in id_water
This commit is contained in:
21
src/main.cpp
21
src/main.cpp
@@ -210,7 +210,7 @@ int main(int argc, char** argv)
|
||||
|
||||
id_potatoes_0,
|
||||
|
||||
id_beetroots_0,
|
||||
id_fire,
|
||||
|
||||
id_oak_sapling,
|
||||
|
||||
@@ -746,6 +746,25 @@ int main(int argc, char** argv)
|
||||
{
|
||||
break;
|
||||
}
|
||||
else if
|
||||
(
|
||||
is_slab(place_id) ||
|
||||
|
||||
is_crop(place_id) ||
|
||||
|
||||
is_cross(place_id) ||
|
||||
|
||||
is_fire(place_id) ||
|
||||
)
|
||||
{
|
||||
if (the_world->get_id_safe(px, py, pz) == id_water)
|
||||
{
|
||||
// Can't place slabs, crops, crosses or
|
||||
// fire in id_water.
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Find the hitbox of the block that is going to
|
||||
// be placed.
|
||||
|
||||
Reference in New Issue
Block a user