summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage
diff options
context:
space:
mode:
authorHaoTNN <haotnn@gmail.com>2015-06-03 02:26:21 +0200
committerHaoTNN <haotnn@gmail.com>2015-06-03 11:19:22 +0200
commite82cd6e4eb78a163b6a72fc1729804e69f1b7601 (patch)
tree00fd5d8d8535ceab005d29913b7b7e8cf1d3b295 /src/WorldStorage
parentMerge branch 'master' of https://github.com/mc-server/MCServer (diff)
downloadcuberite-e82cd6e4eb78a163b6a72fc1729804e69f1b7601.tar
cuberite-e82cd6e4eb78a163b6a72fc1729804e69f1b7601.tar.gz
cuberite-e82cd6e4eb78a163b6a72fc1729804e69f1b7601.tar.bz2
cuberite-e82cd6e4eb78a163b6a72fc1729804e69f1b7601.tar.lz
cuberite-e82cd6e4eb78a163b6a72fc1729804e69f1b7601.tar.xz
cuberite-e82cd6e4eb78a163b6a72fc1729804e69f1b7601.tar.zst
cuberite-e82cd6e4eb78a163b6a72fc1729804e69f1b7601.zip
Diffstat (limited to '')
-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();
}