diff options
author | madmaxoft <github@xoft.cz> | 2014-05-27 22:05:50 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-27 22:05:50 +0200 |
commit | ff99373237178e9f7da02f51581f9a83d0e624d9 (patch) | |
tree | e5214df93dfbeb166d8b65ccb094175285c0068b /src/Generating/PrefabPiecePool.cpp | |
parent | Biome generators: biome lists can contain spaces. (diff) | |
download | cuberite-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.cpp | 9 |
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 |