summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-25 00:58:51 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-25 00:58:51 +0100
commitfd7fc7e59efebd6b28012c8e8433f53ac853c555 (patch)
treefa4379ca71f8bd716be09bf2daad914e8649a277 /src/Mobs
parentFixed a generator bug (diff)
downloadcuberite-fd7fc7e59efebd6b28012c8e8433f53ac853c555.tar
cuberite-fd7fc7e59efebd6b28012c8e8433f53ac853c555.tar.gz
cuberite-fd7fc7e59efebd6b28012c8e8433f53ac853c555.tar.bz2
cuberite-fd7fc7e59efebd6b28012c8e8433f53ac853c555.tar.lz
cuberite-fd7fc7e59efebd6b28012c8e8433f53ac853c555.tar.xz
cuberite-fd7fc7e59efebd6b28012c8e8433f53ac853c555.tar.zst
cuberite-fd7fc7e59efebd6b28012c8e8433f53ac853c555.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/IronGolem.h4
-rw-r--r--src/Mobs/Squid.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/src/Mobs/IronGolem.h b/src/Mobs/IronGolem.h
index d49ff4cab..41c60438c 100644
--- a/src/Mobs/IronGolem.h
+++ b/src/Mobs/IronGolem.h
@@ -18,6 +18,10 @@ public:
CLASS_PROTODEF(cIronGolem);
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override;
+
+ // Iron golems do not drown
+ virtual void HandleAir(void) override {}
+ virtual void SetSwimState(cChunk & a_Chunk) override {}
} ;
diff --git a/src/Mobs/Squid.h b/src/Mobs/Squid.h
index ad299b95c..a9dba8b70 100644
--- a/src/Mobs/Squid.h
+++ b/src/Mobs/Squid.h
@@ -21,6 +21,9 @@ public:
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override;
+ // Squids do not drown (or float)
+ virtual void HandleAir(void) override {}
+ virtual void SetSwimState(cChunk & a_Chunk) override {}
} ;