diff options
author | Bond-009 <bond.009@outlook.com> | 2017-08-25 15:44:36 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2017-08-25 15:44:36 +0200 |
commit | 3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb (patch) | |
tree | 10475cfc149b63e9de7e76e5efe7228d5c998752 /src/Mobs/Guardian.cpp | |
parent | Don't assert when placing beds in older versions (#3916) (diff) | |
download | cuberite-3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb.tar cuberite-3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb.tar.gz cuberite-3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb.tar.bz2 cuberite-3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb.tar.lz cuberite-3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb.tar.xz cuberite-3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb.tar.zst cuberite-3c8712d871fbd7f3bf936f4c3f9c8b7f5ec886fb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Guardian.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/Mobs/Guardian.cpp b/src/Mobs/Guardian.cpp index 3dbec9928..f36f98ea8 100644 --- a/src/Mobs/Guardian.cpp +++ b/src/Mobs/Guardian.cpp @@ -42,20 +42,11 @@ void cGuardian::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) // that is not where the entity currently resides (FS #411) Vector3d Pos = GetPosition(); - // TODO: Not a real behavior, but cool :D int RelY = FloorC(Pos.y); if ((RelY < 0) || (RelY >= cChunkDef::Height)) { return; } - int RelX = FloorC(Pos.x) - a_Chunk.GetPosX() * cChunkDef::Width; - int RelZ = FloorC(Pos.z) - a_Chunk.GetPosZ() * cChunkDef::Width; - BLOCKTYPE BlockType; - if (a_Chunk.UnboundedRelGetBlockType(RelX, RelY, RelZ, BlockType) && !IsBlockWater(BlockType) && !IsOnFire()) - { - // Burn for 10 ticks, then decide again - StartBurning(10); - } super::Tick(a_Dt, a_Chunk); } |