From 0c8f24ec0604dd5a63a9eb88d1fb000db3eb0b84 Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Sat, 5 Jan 2019 10:27:57 -0500 Subject: [PATCH] Can't place slabs, crops, crosses or fire in id_water --- src/main.cpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 2064c10..0161935 100644 --- a/src/main.cpp +++ b/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.