diff options
author | Mattes D <github@xoft.cz> | 2014-05-31 19:11:13 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-05-31 19:11:13 +0200 |
commit | 6de45037c774f5fc748a4520b6f2afacdca94661 (patch) | |
tree | dc5908fdb33d679c05f10aa562ccbb107e7f3518 /src/Generating/PrefabPiecePool.cpp | |
parent | Merge pull request #951 from worktycho/chunksparsing/structs (diff) | |
parent | Updated PlainsVillage prefabs. (diff) | |
download | cuberite-6de45037c774f5fc748a4520b6f2afacdca94661.tar cuberite-6de45037c774f5fc748a4520b6f2afacdca94661.tar.gz cuberite-6de45037c774f5fc748a4520b6f2afacdca94661.tar.bz2 cuberite-6de45037c774f5fc748a4520b6f2afacdca94661.tar.lz cuberite-6de45037c774f5fc748a4520b6f2afacdca94661.tar.xz cuberite-6de45037c774f5fc748a4520b6f2afacdca94661.tar.zst cuberite-6de45037c774f5fc748a4520b6f2afacdca94661.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 145474bcc..122b9d2af 100644 --- a/src/Generating/PrefabPiecePool.cpp +++ b/src/Generating/PrefabPiecePool.cpp @@ -129,6 +129,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 |