summaryrefslogtreecommitdiffstats
path: root/source/WorldStorage/WSSCompact.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-20 13:41:44 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-20 13:41:44 +0200
commit8dd5fe507083dd390742d782325ef3754f32fd59 (patch)
tree1918df5fedd7f3ec21a72dcc85d1e898fb18801e /source/WorldStorage/WSSCompact.cpp
parentImplemented hopper output (diff)
downloadcuberite-8dd5fe507083dd390742d782325ef3754f32fd59.tar
cuberite-8dd5fe507083dd390742d782325ef3754f32fd59.tar.gz
cuberite-8dd5fe507083dd390742d782325ef3754f32fd59.tar.bz2
cuberite-8dd5fe507083dd390742d782325ef3754f32fd59.tar.lz
cuberite-8dd5fe507083dd390742d782325ef3754f32fd59.tar.xz
cuberite-8dd5fe507083dd390742d782325ef3754f32fd59.tar.zst
cuberite-8dd5fe507083dd390742d782325ef3754f32fd59.zip
Diffstat (limited to '')
-rw-r--r--source/WorldStorage/WSSCompact.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/WorldStorage/WSSCompact.cpp b/source/WorldStorage/WSSCompact.cpp
index 973cb22e5..694f3ed1d 100644
--- a/source/WorldStorage/WSSCompact.cpp
+++ b/source/WorldStorage/WSSCompact.cpp
@@ -310,15 +310,16 @@ void cWSSCompact::LoadEntitiesFromJson(Json::Value & a_Value, cEntityList & a_En
for( Json::Value::iterator itr = AllFurnaces.begin(); itr != AllFurnaces.end(); ++itr )
{
Json::Value & Furnace = *itr;
- cFurnaceEntity * FurnaceEntity = new cFurnaceEntity(0,0,0, a_World);
- if( !FurnaceEntity->LoadFromJson( Furnace ) )
+ // TODO: The block type and meta aren't correct, there's no way to get them here
+ cFurnaceEntity * FurnaceEntity = new cFurnaceEntity(0, 0, 0, E_BLOCK_FURNACE, 0, a_World);
+ if (!FurnaceEntity->LoadFromJson(Furnace))
{
LOGERROR("ERROR READING FURNACE FROM JSON!" );
delete FurnaceEntity;
}
else
{
- a_BlockEntities.push_back( FurnaceEntity );
+ a_BlockEntities.push_back(FurnaceEntity);
}
} // for itr - AllFurnaces[]
}