summaryrefslogtreecommitdiffstats
path: root/source/BlockEntities/FurnaceEntity.cpp
diff options
context:
space:
mode:
authorDaniel O'Brien <marmot.daniel@gmail.com>2013-11-15 14:07:42 +0100
committerDaniel O'Brien <marmot.daniel@gmail.com>2013-11-15 14:07:42 +0100
commit5e3614ce873c56c5aefbcf3a073e7ba58c5a7859 (patch)
tree9b222b739ce4ef5e6062872b6f174e013cd208c7 /source/BlockEntities/FurnaceEntity.cpp
parentadded cProtocol function to pass xp to client (diff)
parentAPIDump: Small fixes and additions. (diff)
downloadcuberite-5e3614ce873c56c5aefbcf3a073e7ba58c5a7859.tar
cuberite-5e3614ce873c56c5aefbcf3a073e7ba58c5a7859.tar.gz
cuberite-5e3614ce873c56c5aefbcf3a073e7ba58c5a7859.tar.bz2
cuberite-5e3614ce873c56c5aefbcf3a073e7ba58c5a7859.tar.lz
cuberite-5e3614ce873c56c5aefbcf3a073e7ba58c5a7859.tar.xz
cuberite-5e3614ce873c56c5aefbcf3a073e7ba58c5a7859.tar.zst
cuberite-5e3614ce873c56c5aefbcf3a073e7ba58c5a7859.zip
Diffstat (limited to 'source/BlockEntities/FurnaceEntity.cpp')
-rw-r--r--source/BlockEntities/FurnaceEntity.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/source/BlockEntities/FurnaceEntity.cpp b/source/BlockEntities/FurnaceEntity.cpp
index 2f548d003..ec5ebe8b9 100644
--- a/source/BlockEntities/FurnaceEntity.cpp
+++ b/source/BlockEntities/FurnaceEntity.cpp
@@ -23,27 +23,6 @@ enum
-cFurnaceEntity::cFurnaceEntity(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) :
- super(E_BLOCK_FURNACE, a_BlockX, a_BlockY, a_BlockZ, ContentsWidth, ContentsHeight, NULL),
- m_BlockType(a_BlockType),
- m_BlockMeta(a_BlockMeta),
- m_CurrentRecipe(NULL),
- m_IsCooking(false),
- m_NeedCookTime(0),
- m_TimeCooked(0),
- m_FuelBurnTime(0),
- m_TimeBurned(0),
- m_LastProgressFuel(0),
- m_LastProgressCook(0)
-{
- SetBlockEntity(this); // cBlockEntityWindowOwner
- m_Contents.AddListener(*this);
-}
-
-
-
-
-
cFurnaceEntity::cFurnaceEntity(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, cWorld * a_World) :
super(E_BLOCK_FURNACE, a_BlockX, a_BlockY, a_BlockZ, ContentsWidth, ContentsHeight, a_World),
m_BlockType(a_BlockType),
@@ -57,7 +36,7 @@ cFurnaceEntity::cFurnaceEntity(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTY
m_LastProgressFuel(0),
m_LastProgressCook(0)
{
- SetBlockEntity(this); // cBlockEntityWindowOwner
+ cBlockEntityWindowOwner::SetBlockEntity(this);
m_Contents.AddListener(*this);
}