diff options
author | HaoTNN <haotnn@gmail.com> | 2015-06-03 02:26:21 +0200 |
---|---|---|
committer | HaoTNN <haotnn@gmail.com> | 2015-06-03 11:19:22 +0200 |
commit | e82cd6e4eb78a163b6a72fc1729804e69f1b7601 (patch) | |
tree | 00fd5d8d8535ceab005d29913b7b7e8cf1d3b295 /src/WorldStorage | |
parent | Merge branch 'master' of https://github.com/mc-server/MCServer (diff) | |
download | cuberite-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-x | src/WorldStorage/WSSAnvil.cpp | 5 |
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(); } |