summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_13.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-02-20 17:24:13 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2021-02-20 18:46:02 +0100
commit81e299f00ce3df587166ccc94f5997555cce5210 (patch)
treed5954c7f5756b67b2c6c1f7c6f2b635f5337eef2 /src/Protocol/Protocol_1_13.cpp
parentClang 7? (diff)
downloadcuberite-81e299f00ce3df587166ccc94f5997555cce5210.tar
cuberite-81e299f00ce3df587166ccc94f5997555cce5210.tar.gz
cuberite-81e299f00ce3df587166ccc94f5997555cce5210.tar.bz2
cuberite-81e299f00ce3df587166ccc94f5997555cce5210.tar.lz
cuberite-81e299f00ce3df587166ccc94f5997555cce5210.tar.xz
cuberite-81e299f00ce3df587166ccc94f5997555cce5210.tar.zst
cuberite-81e299f00ce3df587166ccc94f5997555cce5210.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol_1_13.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/Protocol/Protocol_1_13.cpp b/src/Protocol/Protocol_1_13.cpp
index dbfd51d59..afb0a9cc9 100644
--- a/src/Protocol/Protocol_1_13.cpp
+++ b/src/Protocol/Protocol_1_13.cpp
@@ -463,7 +463,6 @@ UInt32 cProtocol_1_13::GetProtocolMobType(eMonsterType a_MobType)
case mtZombiePigman: return 53;
case mtZombieHorse: return 88;
case mtZombieVillager: return 89;
-
default: return 0;
}
UNREACHABLE("Unsupported mob type");
@@ -599,7 +598,6 @@ UInt8 cProtocol_1_13::GetEntityMetadataID(EntityMetadata a_Metadata)
case EntityMetadata::AbstractSkeletonArmsSwinging:
case EntityMetadata::ZombieUnusedWasType: break;
}
-
UNREACHABLE("Retrieved invalid metadata for protocol");
}
@@ -631,7 +629,6 @@ UInt8 cProtocol_1_13::GetEntityMetadataID(EntityMetadataType a_FieldType)
case EntityMetadataType::OptVarInt: return 17;
case EntityMetadataType::Pose: return 18;
}
-
UNREACHABLE("Translated invalid metadata type for protocol");
}
@@ -1307,10 +1304,9 @@ void cProtocol_1_13::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mo
case mtVindicator:
case mtHusk:
-
{
// Todo: Mobs not added yet. Grouped ones have the same metadata
- UNREACHABLE("cProtocol_1_13::WriteMobMetadata: received unimplemented type");
+ ASSERT(!"cProtocol_1_13::WriteMobMetadata: received unimplemented type");
break;
}
@@ -1331,10 +1327,6 @@ void cProtocol_1_13::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mo
break;
}
- case mtInvalidType:
- {
- break;
- }
default: UNREACHABLE("cProtocol_1_13::WriteMobMetadata: received mob of invalid type");
} // switch (a_Mob.GetType())
}