summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-06-05 10:12:10 +0200
committerMattes D <github@xoft.cz>2015-06-05 10:12:10 +0200
commit52672855298fc489ee73d78b8704927457cb8b6e (patch)
tree9a092147529f5d5fc08a2234cb3f8850d49d0041 /src/WorldStorage
parentDebuggers: Added a LineBlockTracer console test command. (diff)
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadcuberite-52672855298fc489ee73d78b8704927457cb8b6e.tar
cuberite-52672855298fc489ee73d78b8704927457cb8b6e.tar.gz
cuberite-52672855298fc489ee73d78b8704927457cb8b6e.tar.bz2
cuberite-52672855298fc489ee73d78b8704927457cb8b6e.tar.lz
cuberite-52672855298fc489ee73d78b8704927457cb8b6e.tar.xz
cuberite-52672855298fc489ee73d78b8704927457cb8b6e.tar.zst
cuberite-52672855298fc489ee73d78b8704927457cb8b6e.zip
Diffstat (limited to 'src/WorldStorage')
-rwxr-xr-xsrc/WorldStorage/WSSAnvil.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp
index 392b9bf83..8ca49c2c0 100755
--- a/src/WorldStorage/WSSAnvil.cpp
+++ b/src/WorldStorage/WSSAnvil.cpp
@@ -1052,7 +1052,8 @@ cBlockEntity * cWSSAnvil::LoadFurnaceFromNBT(const cParsedNBT & a_NBT, int a_Tag
}
std::unique_ptr<cFurnaceEntity> Furnace(new cFurnaceEntity(a_BlockX, a_BlockY, a_BlockZ, a_BlockType, a_BlockMeta, m_World));
-
+ Furnace->SetLoading(true);
+
// Load slots:
for (int Child = a_NBT.GetFirstChild(Items); Child != -1; Child = a_NBT.GetNextSibling(Child))
{
@@ -1085,9 +1086,9 @@ cBlockEntity * cWSSAnvil::LoadFurnaceFromNBT(const cParsedNBT & a_NBT, int a_Tag
// Anvil doesn't store the time that an item takes to cook. We simply use the default - 10 seconds (200 ticks)
Furnace->SetCookTimes(200, ct);
}
-
// Restart cooking:
Furnace->ContinueCooking();
+ Furnace->SetLoading(false);
return Furnace.release();
}