summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSafwat Halaby <SafwatHalaby@users.noreply.github.com>2015-12-25 18:11:02 +0100
committerSafwat Halaby <SafwatHalaby@users.noreply.github.com>2015-12-25 18:19:22 +0100
commit687d1816c4ddf188cfe544c8abfce957819d3057 (patch)
treed4f34e72cedc09d139da075a6aa157ec093e7c89
parentMerge pull request #2795 from SafwatHalaby/doors (diff)
downloadcuberite-687d1816c4ddf188cfe544c8abfce957819d3057.tar
cuberite-687d1816c4ddf188cfe544c8abfce957819d3057.tar.gz
cuberite-687d1816c4ddf188cfe544c8abfce957819d3057.tar.bz2
cuberite-687d1816c4ddf188cfe544c8abfce957819d3057.tar.lz
cuberite-687d1816c4ddf188cfe544c8abfce957819d3057.tar.xz
cuberite-687d1816c4ddf188cfe544c8abfce957819d3057.tar.zst
cuberite-687d1816c4ddf188cfe544c8abfce957819d3057.zip
-rw-r--r--src/Mobs/Path.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Mobs/Path.cpp b/src/Mobs/Path.cpp
index 3890650a4..922e28cdb 100644
--- a/src/Mobs/Path.cpp
+++ b/src/Mobs/Path.cpp
@@ -623,12 +623,19 @@ bool cPath::BlockTypeIsFence(BLOCKTYPE a_Type)
{
switch (a_Type)
{
+ case E_BLOCK_COBBLESTONE_WALL:
case E_BLOCK_FENCE:
case E_BLOCK_OAK_FENCE_GATE:
case E_BLOCK_NETHER_BRICK_FENCE:
- case E_BLOCK_COBBLESTONE_WALL:
- case E_BLOCK_DARK_OAK_FENCE:
case E_BLOCK_SPRUCE_FENCE_GATE:
+ case E_BLOCK_BIRCH_FENCE_GATE:
+ case E_BLOCK_JUNGLE_FENCE_GATE:
+ case E_BLOCK_DARK_OAK_FENCE_GATE:
+ case E_BLOCK_ACACIA_FENCE_GATE:
+ case E_BLOCK_SPRUCE_FENCE:
+ case E_BLOCK_BIRCH_FENCE:
+ case E_BLOCK_JUNGLE_FENCE:
+ case E_BLOCK_DARK_OAK_FENCE:
case E_BLOCK_ACACIA_FENCE:
{
return true;