Flowers can now be placed on id_dirt as well

This commit is contained in:
CobaltXII
2019-01-02 21:53:40 -05:00
parent 8bcd36dbbe
commit b8dc4248e2

View File

@@ -695,9 +695,11 @@ int main(int argc, char** argv)
if (place_id == id_dandelion || place_id == id_rose)
{
// Can only place id_dandelion and id_rose
// on id_grass.
// on id_grass or id_dirt.
if (the_world->get_id_safe(px, py + 1, pz) == id_grass)
block_id flower_below = the_world->get_id_safe(px, py + 1, pz);
if (flower_below == id_grass || flower_below == id_dirt)
{
the_accessor->set_id_safe(px, py, pz, place_id);