summaryrefslogtreecommitdiffstats
path: root/source/Generating/MineShafts.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-10 21:52:03 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-10 21:52:03 +0200
commitcc26f1646308a71ea78f0656efa670915e5e7345 (patch)
tree99b380f0d6466d4f67d792a6bd66b6dc87b80f02 /source/Generating/MineShafts.cpp
parentFixed Windows Release build (diff)
downloadcuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar
cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.gz
cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.bz2
cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.lz
cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.xz
cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.zst
cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.zip
Diffstat (limited to 'source/Generating/MineShafts.cpp')
-rw-r--r--source/Generating/MineShafts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Generating/MineShafts.cpp b/source/Generating/MineShafts.cpp
index 4a56b1f4a..fe93cec65 100644
--- a/source/Generating/MineShafts.cpp
+++ b/source/Generating/MineShafts.cpp
@@ -798,7 +798,7 @@ void cMineShaftCorridor::PlaceChest(cChunkDesc & a_ChunkDesc)
cNoise Noise(a_ChunkDesc.GetChunkX() ^ a_ChunkDesc.GetChunkZ());
int NumSlots = 3 + ((Noise.IntNoise3DInt(x, m_BoundingBox.p1.y, z) / 11) % 4);
int Seed = Noise.IntNoise2DInt(x, z);
- ChestEntity->GenerateRandomLootWithBooks(LootProbab, ARRAYCOUNT(LootProbab), NumSlots, Seed);
+ ChestEntity->GetContents().GenerateRandomLootWithBooks(LootProbab, ARRAYCOUNT(LootProbab), NumSlots, Seed);
a_ChunkDesc.AddBlockEntity(ChestEntity);
}
}