diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-22 18:26:48 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-22 18:26:48 +0200 |
commit | a28b0dc1201dca7c34d9a6c33232157e45a6d4f8 (patch) | |
tree | c904fd2faa10ed724e7229749b31ad6fe37fed9b /src/Entities/Entity.h | |
parent | Suggestion and failed merge fix (diff) | |
download | cuberite-a28b0dc1201dca7c34d9a6c33232157e45a6d4f8.tar cuberite-a28b0dc1201dca7c34d9a6c33232157e45a6d4f8.tar.gz cuberite-a28b0dc1201dca7c34d9a6c33232157e45a6d4f8.tar.bz2 cuberite-a28b0dc1201dca7c34d9a6c33232157e45a6d4f8.tar.lz cuberite-a28b0dc1201dca7c34d9a6c33232157e45a6d4f8.tar.xz cuberite-a28b0dc1201dca7c34d9a6c33232157e45a6d4f8.tar.zst cuberite-a28b0dc1201dca7c34d9a6c33232157e45a6d4f8.zip |
Diffstat (limited to 'src/Entities/Entity.h')
-rw-r--r-- | src/Entities/Entity.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index 1679b00d6..62a4097f3 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -337,8 +337,10 @@ public: /** Detects the time for application of cacti damage */ virtual void DetectCacti(void); - /** Detects whether we are in a portal block and begins teleportation procedures if so */ - virtual void DetectPortal(void); + /** Detects whether we are in a portal block and begins teleportation procedures if so + Returns true if MoveToWorld() was called, false if not + */ + virtual bool DetectPortal(void); /// Handles when the entity is in the void virtual void TickInVoid(cChunk & a_Chunk); |