summaryrefslogtreecommitdiffstats
path: root/src/Generating/PrefabPiecePool.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-27 22:05:50 +0200
committermadmaxoft <github@xoft.cz>2014-05-27 22:05:50 +0200
commitff99373237178e9f7da02f51581f9a83d0e624d9 (patch)
treee5214df93dfbeb166d8b65ccb094175285c0068b /src/Generating/PrefabPiecePool.cpp
parentBiome generators: biome lists can contain spaces. (diff)
downloadcuberite-ff99373237178e9f7da02f51581f9a83d0e624d9.tar
cuberite-ff99373237178e9f7da02f51581f9a83d0e624d9.tar.gz
cuberite-ff99373237178e9f7da02f51581f9a83d0e624d9.tar.bz2
cuberite-ff99373237178e9f7da02f51581f9a83d0e624d9.tar.lz
cuberite-ff99373237178e9f7da02f51581f9a83d0e624d9.tar.xz
cuberite-ff99373237178e9f7da02f51581f9a83d0e624d9.tar.zst
cuberite-ff99373237178e9f7da02f51581f9a83d0e624d9.zip
Diffstat (limited to 'src/Generating/PrefabPiecePool.cpp')
-rw-r--r--src/Generating/PrefabPiecePool.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Generating/PrefabPiecePool.cpp b/src/Generating/PrefabPiecePool.cpp
index ed9340815..ad97ab0e7 100644
--- a/src/Generating/PrefabPiecePool.cpp
+++ b/src/Generating/PrefabPiecePool.cpp
@@ -101,6 +101,15 @@ int cPrefabPiecePool::GetPieceWeight(const cPlacedPiece & a_PlacedPiece, const c
+int cPrefabPiecePool::GetStartingPieceWeight(const cPiece & a_NewPiece)
+{
+ return ((const cPrefab &)a_NewPiece).GetDefaultWeight();
+}
+
+
+
+
+
void cPrefabPiecePool::PiecePlaced(const cPiece & a_Piece)
{
// Do nothing