diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-15 21:18:11 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-15 21:18:11 +0100 |
commit | 8090c13cde2d61a0330f1e262de7526318a0965d (patch) | |
tree | 8a5f53d6113c25ee49caacea5c52548dc1585f91 /source/Blocks/BlockSnow.h | |
parent | Doxygen: Alpha-sorted class member docs (diff) | |
download | cuberite-8090c13cde2d61a0330f1e262de7526318a0965d.tar cuberite-8090c13cde2d61a0330f1e262de7526318a0965d.tar.gz cuberite-8090c13cde2d61a0330f1e262de7526318a0965d.tar.bz2 cuberite-8090c13cde2d61a0330f1e262de7526318a0965d.tar.lz cuberite-8090c13cde2d61a0330f1e262de7526318a0965d.tar.xz cuberite-8090c13cde2d61a0330f1e262de7526318a0965d.tar.zst cuberite-8090c13cde2d61a0330f1e262de7526318a0965d.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Blocks/BlockSnow.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/Blocks/BlockSnow.h b/source/Blocks/BlockSnow.h index 2a5009b69..f150f497c 100644 --- a/source/Blocks/BlockSnow.h +++ b/source/Blocks/BlockSnow.h @@ -29,10 +29,9 @@ public: }
- virtual bool CanBeAt(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ) override
+ virtual bool CanBeAt(int a_RelX, int a_RelY, int a_RelZ, const cChunk & a_Chunk) override
{
- BLOCKTYPE UnderlyingBlock = a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ);
- return g_BlockIsSnowable[UnderlyingBlock];
+ return (a_RelY > 0) && g_BlockIsSnowable[a_Chunk.GetBlock(a_RelX, a_RelY - 1, a_RelZ)];
}
|