From 37a5f8a30bc2e267909d699faef4910a3a261555 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 16 Nov 2011 01:34:09 +0200 Subject: Move cook result properly to ContentFeatures --- src/nodedef.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/nodedef.cpp') diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 4e43369b4..2e0c6fad6 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -140,6 +140,8 @@ void ContentFeatures::reset() air_equivalent = false; often_contains_mineral = false; dug_item = ""; + extra_dug_item = ""; + extra_dug_item_rarity = 2; initial_metadata = NULL; liquid_type = LIQUID_NONE; liquid_alternative_flowing = CONTENT_IGNORE; @@ -149,6 +151,7 @@ void ContentFeatures::reset() damage_per_second = 0; selection_box = NodeBox(); material = MaterialProperties(); + cookresult_item = ""; } void ContentFeatures::serialize(std::ostream &os) @@ -198,6 +201,7 @@ void ContentFeatures::serialize(std::ostream &os) writeU32(os, damage_per_second); selection_box.serialize(os); material.serialize(os); + os<