diff options
author | madmaxoft <github@xoft.cz> | 2014-01-24 19:22:10 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-24 22:23:57 +0100 |
commit | f0a75f7f73effcaccc6dcb73c42fd8c9f4492dcd (patch) | |
tree | 5f1b4e8f9cc0c401d508b4966bcf805a8e0cb6ca /src | |
parent | Updated Core (diff) | |
download | cuberite-f0a75f7f73effcaccc6dcb73c42fd8c9f4492dcd.tar cuberite-f0a75f7f73effcaccc6dcb73c42fd8c9f4492dcd.tar.gz cuberite-f0a75f7f73effcaccc6dcb73c42fd8c9f4492dcd.tar.bz2 cuberite-f0a75f7f73effcaccc6dcb73c42fd8c9f4492dcd.tar.lz cuberite-f0a75f7f73effcaccc6dcb73c42fd8c9f4492dcd.tar.xz cuberite-f0a75f7f73effcaccc6dcb73c42fd8c9f4492dcd.tar.zst cuberite-f0a75f7f73effcaccc6dcb73c42fd8c9f4492dcd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Squid.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Mobs/Squid.cpp b/src/Mobs/Squid.cpp index a311108ae..5a27762ff 100644 --- a/src/Mobs/Squid.cpp +++ b/src/Mobs/Squid.cpp @@ -43,7 +43,8 @@ void cSquid::Tick(float a_Dt, cChunk & a_Chunk) } int RelX = (int)floor(Pos.x) - a_Chunk.GetPosX() * cChunkDef::Width; int RelZ = (int)floor(Pos.z) - a_Chunk.GetPosZ() * cChunkDef::Width; - if (!IsBlockWater(a_Chunk.GetBlock(RelX, RelY, RelZ)) && !IsOnFire()) + BLOCKTYPE BlockType; + if (a_Chunk.UnboundedRelGetBlockType(RelX, RelY, RelZ, BlockType) && !IsBlockWater(BlockType) && !IsOnFire()) { // Burn for 10 ticks, then decide again StartBurning(10); |