From 044d30f9342eff2969851e7215110c3d5ff11cd8 Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Fri, 4 Jan 2019 16:06:38 -0500 Subject: [PATCH] Implemented potato growth --- src/main.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 2718e0d..95d2c11 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1010,6 +1010,29 @@ int main(int argc, char** argv) the_growing_plant.done = true; } } + else if (the_growing_plant.type == growing_potatoes) + { + if (plant_id < id_potatoes_3) + { + the_accessor->set_id_safe + ( + the_growing_plant.x, + the_growing_plant.y, + the_growing_plant.z, + + block_id(plant_id + 1) + ); + + if (plant_id < id_potatoes_2) + { + the_growing_plant.timer = 60; + } + } + else + { + the_growing_plant.done = true; + } + } } else {